In the House, the Democrats have the advantage, according to an analysis of ratings from the Cook Political Report. They need to pick up 23 seats to win control.

Republican seats in play

Likely to flip 5 Calif. 49 N.J. 2 Pa. 6 Pa. 5 Pa. 17 Leaning toward flipping 13 Ariz. 2 Colo. 6 Fla. 27 Iowa 1 Ill. 6 Kan. 3 Mich. 11 Minn. 2 Minn. 3 N.J. 11 Pa. 7 Va. 10 Wash. 8

Tossup 29 Calif. 10 Calif. 25 Calif. 39 Calif. 45 Calif. 48 Fla. 15 Fla. 26 Ga. 6 Iowa 3 Ill. 14 Kan. 2 Ky. 6 Me. 2 Mich. 8 N.C. 9 N.C. 13 N.J. 3 N.J. 7 N.M. 2 N.Y. 19 N.Y. 22 Ohio 12 Pa. 10 Pa. 1 Tex. 7 Tex. 32 Utah 4 Va. 2 Va. 7 Democratic seats in play

Likely to flip 1 Pa. 14 Leaning toward flipping 1 Minn. 8

Tossup 1 Minn. 1

The math favors the Democrats. More seats currently held by Republicans are leaning toward the Democrats than the other way around. And many more Republican seats are tossups.

But it’s far from a done deal. Even if Democrats hold on to their existing seats and win all the districts they are rated as leaning or likely to pick up from the Republicans, they will still have to win at least six of the 29 Republican seats rated as tossups — seats that could easily go either way.

The Senate, on the other hand, leans toward the Republicans . To maintain control, they must keep their losses to one seat.

Republican seats in play

Likely to flip 0 Leaning toward flipping 0

Tossup 4 Tex. Tenn. Nev. Ariz. Democratic seats in play

Likely to flip 0 Leaning toward flipping 1 N.D.

Tossup 5 Ind. Mo. Fla. Mont. N.J.

Democrats are defending most of the 35 seats up for election. They would need to pick up two more seats to take the Senate, but one Democratic seat is leaning Republican and five are rated tossups.

This analysis will be updated regularly as Cook adjusts its race ratings.