Calendar Mechanics Lab

Gregorian calendar rules, weekday math & calendar drift

Calendar convention: Calculations use the proleptic Gregorian calendar for every supported year (1–9999). Historical civil calendars varied by place and adoption date, so a pre-adoption weekday shown here is a mathematical Gregorian equivalent, not necessarily the date label people used locally at the time.

Interactive Gregorian Year Explorer

Select any year from 1 to 9999 to calculate its proleptic Gregorian length, structure, Jan 1 weekday, and complete calendar layout.

Presets:
Year Type
Leap Year

Divisible by 4 & 400

Total Duration
366 Days

February has 29 days

January 1 Weekday
Monday

Day 1 of the year

Leap Rule Reason
2024 % 4 == 0 (True) & 2024 % 100 != 0

Standard 4-year cycle

Month Length Breakdown for 2024 Notice February's variable length

Full Visual Calendar: 2024

Feb 29 (Leap Day) Jan 1st