The Gregorian leap year rule
leap if (year divisible by 4 and not by 100) or divisible by 400
This gives 97 leap years every 400 years, an average year of 365.2425 days — very close to the tropical year of about 365.2422 days.
Leap years 1900–2100
1904, 1908, 1912, 1916, 1920, 1924, 1928, 1932, 1936, 1940, 1944, 1948, 1952, 1956, 1960, 1964, 1968, 1972, 1976, 1980, 1984, 1988, 1992, 1996, 2000, 2004, 2008, 2012, 2016, 2020, 2024, 2028, 2032, 2036, 2040, 2044, 2048, 2052, 2056, 2060, 2064, 2068, 2072, 2076, 2080, 2084, 2088, 2092, 2096.
1900 and 2100 are not leap years; 2000 was.