Age in Months Explained: counting whole calendar months, the years × 12 + months formula, and why it is not days ÷ 30
Age in months sounds trivial — until you notice that months come in four different lengths. This is how the calculation actually works, why it counts calendar months rather than 30-day blocks, what happens to 31st and 29 February birthdays, and why the first three years of a child’s life are measured in months at all.
What "age in months" actually measures
Age in months is the count of whole calendar months lived between a date of birth and a reference date, with any extra days shown separately. The word doing the heavy lifting is calendar. A calendar month is not a fixed block of thirty days — it is the span from a day-of-month to the same day-of-month the next month, whether that stretch happens to be 28, 29, 30, or 31 days long. So 15 January to 15 February is one month, and so is 15 March to 15 April, even though the first is 31 days and the second is 31 days but February in between has fewer. The age in months calculator counts those completed months, then reports the leftover days of the current, still-incomplete month.
This is the unit paediatrics runs on. For roughly the first three years of life, age is quoted in months rather than years because development moves too fast for years to be useful. A "20-month-old" is a meaningfully different creature from a "16-month-old"; calling both "one and a bit" loses the information that matters. Growth charts, vaccination schedules, and developmental checkpoints from the NHS, the American Academy of Pediatrics, and the World Health Organization are all indexed by month — the two-month, four-month, six-month, and twelve-month checks being the familiar ones. Clothing sizes and car-seat weight bands follow the same convention.
How age in months is calculated
The formula is short:
total months = years × 12 + extra whole months
The calculator first counts the complete years since birth, then the additional whole months since the last birthday, then collapses the two into a single figure and leaves the remaining days as a separate number. Counting the months is the only fiddly part, and it works by anniversary of the day-of-month: you complete a month the moment the reference date reaches the same calendar day it started on. Someone born on the 15th is not one month old until the 15th of the following month, no matter how many days that month contains. The age in months calculator uses the proleptic Gregorian calendar in UTC for this, so daylight-saving shifts never appear and every leap day between the two dates is counted exactly once.
This matches the behaviour of the standard date libraries — PHP's DateInterval, date-fns' differenceInMonths, and dayjs — as well as the popular online calculators. It is deliberately not a divide-by-30 approximation. Dividing total days by 30 drifts by roughly five days a year, because the average calendar month is about 30.44 days long, not 30. Over a couple of years that error is enough to put a baby in the wrong milestone bracket, which is exactly the kind of mistake the calendar-month method avoids.
Worked example
Take someone born on 15 June 1990, and ask for their age in months as of 14 June 2026 — the day before their thirty-sixth birthday. That span is 35 complete years and 11 more whole months. Applying the formula: 35 × 12 + 11 = 431 whole calendar months, with 30 leftover days of the current month. So the age in months is 431 months and 30 days.
Two things are worth noticing. First, 431 is eleven more than 35 × 12 = 420, because the reference date falls late in the person's 36th year — nearly a full extra year of months has piled up on top of the last birthday. Second, this same span is 13,148 total days and 1,878 total weeks, and 15 June 1990 was a Friday. Feed the same two dates into the age in months calculator and it returns all of those numbers at once, alongside how long until the next birthday. If you want the raw day count instead, the age in days calculator gives 13,148 directly, and the age in weeks calculator gives 1,878 weeks and 2 days, and its companion guide on how age in weeks is calculated walks through why that figure is never a round multiple of 52.
A quick sanity check: divide total months by 12 and you should get back the years component. 431 ÷ 12 ≈ 35.9, which rounds to 36 and sits just short of the 36th birthday — consistent with a reference date one day early. If your month figure and that estimate disagree by more than a month or so, one of the dates is entered wrong.
The tricky bit: months are different lengths
Because calendar months vary from 28 to 31 days, month arithmetic has edge cases that day or week arithmetic simply does not. These are the ones that trip people up.
End-of-month birthdays
What happens to someone born on the 31st in a month that has no 31st? The calculator anchors the day-of-month to the birth day and clamps to the last day of a shorter month. So a baby born on 31 January completes its first month on 28 February (or 29 February in a leap year) — the last available day — and the calculator reports that as one month and zero days. This is the convention used by PHPDateInterval, date-fns, and Wolfram Alpha. It means the end of one month always maps to the end of the next, which is the intuitive result even if the day numbers do not literally match.
Large day remainders
A stranger consequence: the leftover-days figure can occasionally be larger than you would expect. Born 31 January, measured on 30 March, the calculator says one month and 30 days — not two months. That is because the first month completes on 28 February, but the second month would not complete until 31 March, and 30 March has not reached it yet. So the 30 days from 28 February to 30 March sit in the remainder. It looks odd, but it is the honest answer: you have genuinely not lived two full calendar months yet. Day and week counts never do this, which is one reason the age in days calculator is the better tool when you need a single, monotonic number.
Leap-day birthdays
A 29 February birthday raises its monthly and yearly anniversaries on 28 February in non-leap years — the convention used by date-fns, dayjs, and PHP DateInterval, and recognised by the UK Births and Deaths Registration Act 1953 for births registered in Scotland. The total-days count is unaffected either way, because it simply counts every calendar day between the two dates, leap days included.
Where age in months is the natural unit
Infant and toddler milestones
From roughly one month to three years, months are the working unit of child development. Paediatric growth charts — the WHO Multicentre Growth Reference Study, the UK-WHO charts used by the NHS, and the CDC charts in the US — plot weight, length, and head circumference against age in months. Vaccination schedules are built the same way: in the UK the routine schedule has injections at 8, 12, and 16 weeks and then again at one year and around 3 years 4 months, but the milestone reviews (the health-visitor checks) are month-based. When a form asks for a child's age in months, the calendar-month figure from the age in months calculator is exactly what it wants. For the years-months-days breakdown behind it, the age calculator guide covers the same anniversary arithmetic from the whole-age angle.
Corrected age for premature babies
For a baby born preterm, clinicians track development against corrected age rather than chronological age for the first two years — chronological age minus the number of weeks or months the baby arrived before the due date. A baby born two months early, assessed at a chronological age of six months, is scored against four-month milestones. The calendar-month arithmetic is the same; you simply shift the birth date to the original due date. The due date calculator gives you that due date to work from.
Milestones and subscriptions
Age in months also settles the everyday questions: when a baby hits exactly 18 months, when a lease or subscription described as "X months" runs out, how many months until a child ages out of a car seat's weight band. Set the reference date to a future day and the calculator reports the age in months that will be reached then — handy for planning a first-birthday party at exactly 12 months, or an 18-month review. If you want the exact date a round-month milestone lands on instead, the date calculator will add the months to the birth date for you.
Common mistakes
Dividing total days by 30. The average month is 30.44 days, so a 30-day divisor slowly overstates the month count — by about five days' worth a year, enough to matter for a baby. Count calendar months instead, which is what this calculator does.
Assuming age in months is years × 12. That only captures complete years and throws away the part-year. A person aged 35 years and 11 months is 431 months old, not 420. The extra months — up to eleven of them — are the whole point of asking in months.
Confusing gestational age with age since birth. An obstetric "you are four months pregnant" is measured from the last menstrual period, not from conception, and it is not the same clock as a baby's age after delivery. A baby born at full term is zero months old at birth, regardless of the nine months that preceded it.
Expecting the day remainder to stay small. As the end-of-month example above shows, the leftover-days figure can occasionally sit near 30 without the month count ticking over. That is correct behaviour, not a bug — a month is not complete until the anniversary day is reached.
When to seek professional advice
The arithmetic here is unambiguous, and the calculator returns the same age in months as any clinical tool. The interpretation is a different matter. If you are using age in months to read a growth chart, judge whether a milestone is late, or track a premature baby's corrected-age development, those numbers are meant to be read against centile curves by a health visitor, GP, paediatrician, or midwife. The age in months is the x-axis, not the diagnosis — a starting point for the conversation rather than the conclusion.
Frequently asked questions
How do you calculate age in months? Count the complete years since birth, add the extra whole months since the last birthday, and combine them as years × 12 + months. Any days past the last completed month are reported separately. Months are counted as calendar months, not fixed 30-day blocks.
Why is my age in months not years × 12? Years × 12 only counts whole years. If today falls part-way through your current year of age, you have lived extra whole months on top — anywhere from one to eleven — plus some leftover days. Those extra months are why the figure is 431 rather than 420 for someone aged 35 years 11 months.
Is a month always 30 days here? No. The calculator uses real calendar months, which run 28 to 31 days. Dividing total days by 30 gives a different, less accurate answer that drifts by roughly five days a year.
How does it handle a 29 February or 31st birthday? Anniversaries clamp to the last day of a shorter month — a 31 January baby completes a month on 28 February, and a 29 February baby raises its anniversary on 28 February in non-leap years. This matches date-fns, dayjs, and PHP DateInterval.
Can I work out age in months for a future date? Yes. Set the reference date ahead of today and the calculator reports the age in months that will be reached then — useful for milestones like 12 or 18 months. The reference date must be on or after the birth date, or the calculator returns an error rather than a negative count.
What is corrected age? For premature babies, corrected age is chronological age minus the time the baby was born early. Development is tracked against corrected age for the first two years. Work it out by using the original due date as the birth date in the calculator.
For the full picture across units, see the age in months calculator and the related tools below.
Related calculators
- Age calculator — exact age in years, months, and days between any two dates.
- Age in weeks calculator — total weeks lived plus the day remainder, the standard unit for newborns and pregnancy.
- Age in days calculator — the raw calendar-day count, a single monotonic number.
- Age difference calculator — years, months, and days between two people's birth dates.
- Due date calculator — forty-week pregnancy due date from the last menstrual period.
- Date calculator — add or subtract any number of days, months, or years from a date.
Frequently asked questions
How do you calculate age in months?
Count the complete years since birth, add the extra whole months since the last birthday, and combine them as years × 12 + months. Any days beyond the last completed month are shown separately as the remainder. Months are counted as calendar months by anniversary of the day-of-month, not as fixed 30-day blocks.
Why is age in months not simply age in years times twelve?
Years × 12 captures only whole years. If the reference date falls part-way through your current year of age, you have lived extra whole months on top — up to eleven of them — plus some leftover days. That is why someone aged 35 years and 11 months is 431 months old, not 420.
Is a month treated as 30 days?
No. The calculator uses real calendar months, which run from 28 to 31 days. The average calendar month is about 30.44 days, so dividing total days by 30 overstates the month count by roughly five days’ worth a year — enough to put a baby in the wrong milestone bracket.
What happens to a 31st or 29 February birthday?
Anniversaries clamp to the last available day of a shorter month. A baby born on 31 January completes its first month on 28 February (29 February in a leap year); a 29 February birthday raises its anniversary on 28 February in non-leap years. This matches PHP DateInterval, date-fns, dayjs, and Wolfram Alpha, and the total-days count is unaffected.
Why is age in months the standard unit for babies?
For roughly the first three years, development moves too fast for years to be useful, so paediatrics quotes age in months. Growth charts, vaccination and milestone reviews from the NHS, the American Academy of Pediatrics, and the WHO are indexed by month, as are clothing sizes and car-seat weight bands. A 20-month-old and a 16-month-old are meaningfully different.
What is corrected age for a premature baby?
Corrected age is chronological age minus the time the baby was born early, and it is used to track development for the first two years. A baby born two months early, assessed at six chronological months, is scored against four-month milestones. Work it out by entering the original due date as the birth date.
Can I use age in months to plan a future milestone?
Yes. Set the reference date to a future day and the calculator returns the age in months that will be reached then — useful for a first birthday at 12 months or an 18-month review. The reference date must be on or after the birth date, or the calculator returns an error rather than a negative count.
Informational only. Not personalised financial, legal, or tax advice.