A check valve for a solenoid valve inclues a check valve seat that is arranged on an edge of a fluid passage and a movable closing element configured to execute a direction-oriented throughflow and sealing function. The closing element includes a sealing cone, a contact foot with a plurality of outflow grooves formed on the edge, and an elastic sealing ring that is arranged between the contact foot and the sealing cone. The outflow grooves form in each case a seating edge for the elastic sealing ring during sealing. The outflow grooves are configured in each case with an arcuate seating edge, which has a predetermined arc length, so that a circle segment of the elastic sealing ring, with an opening angle in the region of 40° to 120°, butts against the respective seating edge during sealing. A solenoid valve includes the check valve.