induwara.lk
induwara.lkDate · Time

Age Calculator Sri Lanka — Exact Years, Months, Days

Find your precise age between any two dates — broken down into years, months, days, hours, minutes, and seconds. Includes Sri Lanka–specific milestones: NIC eligibility at 16, voting age at 18, driving licence age, Grade 1 school cut-off, and passport validity check. Live seconds counter, leap-year accurate, runs in your browser.

By Induwara AshinsanaUpdated May 26, 2026
How old am I?
Cross-checked · 2 algorithms

Pick any date from 1900 onwards.

Optional — gives you hour-level precision.

Quick presets
Calculate as of
Your exact ageupdating live
25
years
0
months
0
days

Born on a Tuesday · ISO 8601 duration: P25YT12H40S

Total time lived

Months
300
Weeks
1,304
Days
9,131
Hours
219,156
Minutes
13,149,360
Seconds
788,961,640
Next birthday
Turning
26 years
Falls on
Saturday, July 3, 2027
Time remaining
365 days
12 months and 0 days
Years cross-checked against an independent algorithm. Methodology last verified 2026-05-11. Times are computed in your device's local timezone — nothing is uploaded.

How it works

The calculator uses the standard calendar-borrowingrule — the same one date-fns' differenceInCalendarMonths family of helpers implements, and the same one mainstream age sites (calculator.net, timeanddate.com) use. It produces an answer that always reconciles: adding the years, months, and days back to your birth date returns the reference date to the day.

Given a birth date B and a reference date R:

  1. Compute raw differences for each field: ΔY = R.year − B.year, ΔM = R.month − B.month, ΔD = R.day − B.day, and the same for hours, minutes, seconds.
  2. If seconds < 0, borrow 60 seconds from minutes. If minutes < 0, borrow 60 from hours. If hours < 0, borrow 24 from days.
  3. If days < 0, borrow the number of days in the calendar month immediately before the reference month — that's real month-aware borrowing, not a 30-day approximation. So if R is in March, you borrow 28 or 29 (Feb), not 30.
  4. If months < 0, borrow 12 from years.

The total counters (months, weeks, days, hours, minutes, seconds) are computed independently from the raw millisecond difference R.time − B.time, divided by the right constant. Total months is years × 12 + months from the calendar breakdown — using whole calendar months, not 30-day buckets.

For leap-day birthdays (Feb 29), the next-birthday section uses the common-law convention of rolling to Feb 28 in non-leap years — which is also the practice followed by the Sri Lanka Registrar General's Department when issuing age-dependent documents. The Gregorian leap-year rule applied is the full one: divisible by 4, except centuries unless divisible by 400.

To guard against single-algorithm bugs, the years figure is cross-checked against an independent year-only algorithm that compares (month, day, time) tuples directly. The two algorithms must agree before the "cross-checked" badge appears in the calculator header.

Worked examples

Born 15 June 2000 — measured on 11 May 2026

  1. ΔY = 2026 − 2000 = 26
  2. ΔM = 5 − 6 = −1
  3. ΔD = 11 − 15 = −4
  4. days < 0 → borrow 30 (days in April 2026): ΔM = −2, ΔD = 26
  5. months < 0 → borrow 12: ΔY = 25, ΔM = 10
  6. Result: 25 years, 10 months, 26 days
  7. Verify: 2000-06-15 + 25y = 2025-06-15 → +10m = 2026-04-15 → +26d = 2026-05-11 ✓

Born 31 March 2000 — measured on 28 February 2025 (edge: month-end)

  1. ΔY = 25, ΔM = −1, ΔD = −3
  2. days < 0 → borrow 31 (days in January 2025): ΔM = −2, ΔD = 28
  3. months < 0 → borrow 12: ΔY = 24, ΔM = 10
  4. Result: 24 years, 10 months, 28 days
  5. This is what you'd count off a wall calendar — March 31 to Feb 28 across 25 years.

Born 29 February 2000 — measured on 28 February 2025 (leap-day edge)

  1. ΔY = 25, ΔM = 0, ΔD = −1
  2. days < 0 → borrow 31 (days in January 2025): ΔM = −1, ΔD = 30
  3. months < 0 → borrow 12: ΔY = 24, ΔM = 11
  4. Result: 24 years, 11 months, 30 days (one day shy of 25)
  5. Next birthday rolls to 28 Feb 2025 since 2025 is not a leap year.

Sri Lanka age milestones

In Sri Lanka several key rights, licences, and services are tied to exact age thresholds. Use the calculator above to verify whether you (or a family member) have reached these milestones, or to find out exactly how many months remain until you do.

MilestoneAgeAuthority
Grade 1 school admission5 yrsMinistry of Education (5–5y 11m on 1 Jan)
NIC (National Identity Card) eligibility16 yrsDept. of Registration of Persons
Driving licence — motorcycle / car / three-wheeler18 yrsDept. of Motor Traffic
Voting age18 yrsConstitution Art. 88; Election Commission
Minimum age to stand for Parliament18 yrsConstitution Art. 91
Driving licence — heavy vehicles (lorry, bus)21 yrsDept. of Motor Traffic
EPF early withdrawal (women)55 yrsEmployees' Provident Fund Board
EPF early withdrawal (men) / public-sector retirement60 yrsEPF Board / Pensions Dept.
University academics / judges (retirement)65 yrsUniversity Grants Commission / Constitution

Passport validity: adult passports (age 16+) are valid for 10 years; passports for persons under 16 are valid for 5 years. Sri Lanka passport photos must show the applicant with a neutral expression against a white background (size: 35 × 45 mm).

Frequently asked questions

Sources & references

Algorithm and worked examples last cross-checked on 2026-05-11. The Gregorian leap-year and calendar-borrowing logic don't change, so this page is reviewed annually rather than on a fixed schedule.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want to suggest an improvement?

Email me at [email protected] — most fixes ship within 24 hours.