From the 1st thorough the 116th Congress, this is the breakdown of control of the US senate, house and presidency by party (https://en.wikipedia.org/wiki/Party_divisions_of_United_States_Congresses).
(sorry but copying a table into TER is not like Word, the format goes askew)
Party: Senate; House; Presidency; %'age Senate; %'age House; %'age Presidency
Democratic: 50; 58; 44; 43%; 50%; 38%
Republican: 43; 36; 45; 37%; 31%; 39%
Democratic-Republican: 12; 13; 14; 10%; 11%; 12% (many from this party became the current Democratic party)
Federalist: 3; 2; 2; 3%; 2%; 2% (If I remember correctly a number of these left to for the Whig's)
Pro-Administration: 3; 2; 0; 3%; 2%; 0%
Whig: 2; 2; 2; 2%; 2%; 2% (some of these left to form the current Republican part)
National Republican: 1; 1; 0; 1%, 1%, 0% (not related to the current Republican party)
Anti-Administration: 0; 1; 0; 0%; 1%, 0%
Opposition: 0; 1; 0; 0%; 1%; 0%
National Union: 0; 0; 2; 0%; 0%; 2%
Split control: 2; 0; 1; 2%; 0%; 1%
Independent: 0; 0; 5; 0%; 0%; 4%
Another wiki shows that since 1922 the breakdown of US state governors by party (https://en.wikipedia.org/wiki/Political_party_strength_in_U.S._states).
Democrats held 52% (1,907 cumulative years in office 1922 to 2020)
Republicans 47% (1,703 cumulative years in office 1922 to 2020)
Independent 1% (40 cumulative years in office 1922 to 2020)
The same link shows years state governments since 1977
Democrats held 27% (587 cumulative years in office 1977 to 2020)
Republicans 23% (516 cumulative years in office 1977 to 2020)
Split 50% (1,097 cumulative years in office 1977 to 2020)
There are probably some statistics somewhere that show a breakdown at local government levels, but was taking too long to find.