Day of the year

Which day of the year a date is

—

How this was counted
Day of year— Days remaining— Date— Week number— Year length—

Date arithmetic is tested on every build against hand-worked cases, including month ends, leap days and two-digit years. How it is checked

Enter a date to get its day number in the year, from day 1 to 365, or 366 in a leap year. Or enter a day number and a year to get the date back. This ordinal date is used in aviation, logistics, manufacturing lot codes and lab notebooks.

Day numbers for 2026 and 2027

The day of the year for every date in 2026 and 2027, both common years of 365 days, by the same arithmetic as the calculator above. Read down for the day of the month and across for the month. The days remaining in the year are 365 less the day number.
Day Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
1 1 32 60 91 121 152 182 213 244 274 305 335
2 2 33 61 92 122 153 183 214 245 275 306 336
3 3 34 62 93 123 154 184 215 246 276 307 337
4 4 35 63 94 124 155 185 216 247 277 308 338
5 5 36 64 95 125 156 186 217 248 278 309 339
6 6 37 65 96 126 157 187 218 249 279 310 340
7 7 38 66 97 127 158 188 219 250 280 311 341
8 8 39 67 98 128 159 189 220 251 281 312 342
9 9 40 68 99 129 160 190 221 252 282 313 343
10 10 41 69 100 130 161 191 222 253 283 314 344
11 11 42 70 101 131 162 192 223 254 284 315 345
12 12 43 71 102 132 163 193 224 255 285 316 346
13 13 44 72 103 133 164 194 225 256 286 317 347
14 14 45 73 104 134 165 195 226 257 287 318 348
15 15 46 74 105 135 166 196 227 258 288 319 349
16 16 47 75 106 136 167 197 228 259 289 320 350
17 17 48 76 107 137 168 198 229 260 290 321 351
18 18 49 77 108 138 169 199 230 261 291 322 352
19 19 50 78 109 139 170 200 231 262 292 323 353
20 20 51 79 110 140 171 201 232 263 293 324 354
21 21 52 80 111 141 172 202 233 264 294 325 355
22 22 53 81 112 142 173 203 234 265 295 326 356
23 23 54 82 113 143 174 204 235 266 296 327 357
24 24 55 83 114 144 175 205 236 267 297 328 358
25 25 56 84 115 145 176 206 237 268 298 329 359
26 26 57 85 116 146 177 207 238 269 299 330 360
27 27 58 86 117 147 178 208 239 270 300 331 361
28 28 59 87 118 148 179 209 240 271 301 332 362
29 29 88 119 149 180 210 241 272 302 333 363
30 30 89 120 150 181 211 242 273 303 334 364
31 31 90 151 212 243 304 365

Where the leap day shows up

An ordinal date is a plain count: 1 January is day 1, 31 December is day 365, or 366 in a leap year. The leap day changes the count only from 1 March onward, where each date in a leap year is one higher than the same date in a common year. Dates in January and February are unaffected, which is why an off-by-one in leap handling can look correct for two months and then break.

The count assumes the calendar it is counting in. That matters for dates before 1923, when some countries were still on the Julian calendar. The day of the week page gives both labels, and the weekday, which never varied anywhere.

Both directions

Manufacturing lot codes, aviation records and a good deal of scientific data are stamped with a year and a day number in place of a date, and reading them back requires knowing whether that year was a leap year. Day 60 of 2024 is 29 February; day 60 of 2026 is 1 March. Enter a number and a year above and the date comes back; enter a date and the number does.

Ordinal dates and Julian dates

In aviation and manufacturing the ordinal day number is often called the Julian day. The astronomers’ Julian day is a different number: a running count of days from 4713 BC, now seven digits long. If a form asks for a Julian date and expects three digits, it wants the ordinal day number on this page. If it expects seven, it wants the astronomical one.

Questions

What day of the year is it today?
The box above opens on today's date and the answer is the first figure in the strip. The count runs from 1 on 1 January to 365 on 31 December, or 366 in a leap year. The days-remaining figure beside it counts forward to the end of the year and does not include the current day, so on 31 December it reads zero.
Why is 1 March day 60 in some years and 61 in others?
Because 29 February sits in front of it. In a common year January and February use up 59 days, so 1 March is day 60. In a leap year they use 60, so 1 March is day 61 and every date after it shifts by one.
Is this the same as a Julian date?
It depends who is asking. In aviation, manufacturing and food packaging, “Julian date” normally means exactly this: the day number within the year, usually as three digits, often with a year digit in front. Astronomers use the term for a continuous count of days since 4713 BC, currently over 2,460,000, which lets any two instants be subtracted without reference to a calendar. A three-digit field wants the number on this page.
How do I read a lot code like 6236?
That format is usually one year digit followed by three day digits, so 6236 is day 236 of a year ending in 6. Enter 236 and the year in the boxes above to get the date. Be careful with the year digit: it only narrows the year to one in ten, so 6236 could be 2016 or 2026, and the date it maps to differs because leap years fall differently. If the product has a shelf life shorter than a decade the ambiguity usually resolves itself.
Does the day number restart at the same date every year?
Only for dates before 1 March. From 1 March onward a given date is one day number in a common year and one higher in a leap year, so you need the year to turn a day number into a date. That is why the reverse lookup above needs the year box filled in.