When to use this calculator
Find the ordinal position of a date within its Gregorian year. January 1 is day one; leap years have 366 days.
Explore the calendar dates & age calculators for other questions in this topic. For a related calculation, use the Days in Month Calculator: Find the number of days in a Gregorian month, including leap-year February.
PUTTING IT INTO PRACTICE
Day of Year: a worked example
The values below are an illustrative example, not a recommendation. Replace them with measurements or assumptions that match your question.
| Input | Example value |
|---|---|
| Calendar date | 2026-02-01 |
| Result | 32 day number |
- Check the input labels and enter the example values above.
- Apply the relationship: Day of year = days since 1 January + 1..
- The result is 32 day number, rounded for display.
How to interpret your result
January 1 is day one; leap years have 366 days.
Choose whether an interval includes the start or end boundary. Month and year additions use explicitly stated clamping rules when a destination day does not exist. Date-only arithmetic is kept independent of local daylight-saving hour shifts.
Frequently asked questions
Does adding one month always add the same number of days?
No. Calendar months vary in length. A day-count addition and a calendar-month addition solve different questions.
When is the day of year calculator useful?
Find the ordinal position of a date within its Gregorian year. January 1 is day one; leap years have 366 days.
How do I use the day of year calculator?
Enter calendar date. The result updates automatically. Use the units shown beside each input; the example values illustrate the method.
Which formula does this calculator use?
Day of year = days since 1 January + 1..
What should I check before using the result?
January 1 is day one; leap years have 366 days.
How are results rounded?
Scalar numbers display up to six decimal places, with scientific notation for very large or small values. Text, fraction, date and schedule outputs use the format described on the tool. Intermediate calculations use JavaScript floating-point arithmetic. Keep sensible precision for your measurements.
Further reading
For background on this topic, see MDN: date values and calendar handling ↗. This is a topic reference, not an external review or endorsement of this tool.
Calculators Map editorial process · Updated · Methods and limitations