The invention discloses a two-position two-way solenoid valve. The two-position two-way solenoid valve comprises a top cover, a socket, a shell, a coil, a static iron core, a movable iron core, a first spring, a valve body, a main valve cavity, an upper cavity, a pilot valve, an upper valve port, a lower cavity, a lower valve port, a piston and a balance hole, wherein the two-way main valve cavity is formed in the valve body; the lower cavity is arranged in the main valve cavity; the lower cavity is communicated with the main valve cavity by the lower valve port; the upper cavity is arranged above the valve body; the upper valve port is arranged in the bottom of the upper cavity; the other end of the upper valve port is communicated with the main valve cavity by a pipe hole; a second pipe hole is formed in the bottom of the upper cavity and is communicated with the lower cavity; the pilot valve is arranged inside the upper cavity; the piston is arranged in the lower cavity; the balance hole is formed in the piston and is used for communicating the inlet of the main valve cavity with the lower cavity. The two-position two-way solenoid valve has the advantages that the electromagnetic force is small, the power consumption is low, the structure is simple and compact, the shape is small, and the nominal dimension range is wide.