xDataIDAbout
EN, choose language

Age calculator for Indonesia: your exact age and the legal ages that matter

Type a date of birth as dd/mm/yyyy or pick it from the calendar. You get the age in years, months, and days; the weekday and Javanese weton; zodiac, Chinese zodiac, and Hijri date; the age on 1 July used for school entry; and whether the age rules for the Indonesian ID card, driving licence, marriage, civil service, and retirement are met, with the regulation behind each one.

Age on

Computed on your device: today follows your device's clock and time zone. The date of birth is not sent to a server, never appears in the page address, and is not stored.

Result

School entry age on 1 July and estimated grade

Indonesian school admissions (SPMB) count age on 1 July of the school year applied for (Minister of Primary and Secondary Education Reg. 3/2025, Arts. 11 to 13). The rows below use the nearest 1 July that has not yet passed on the reference date; choose "Another date" above for a different year. The grade estimate only follows the year a child started primary school, so repeated or skipped years change it.

Regional admission guidelines can add requirements. The age limits do not apply to students with disabilities, to schools providing special education or special-service education, or to schools in remote and border regions (Art. 15).
LevelYour status
Age on 1 July 2027Enter a date of birth
Primary (SD) grade 1: 7 given priority; at least 6; 5 years 6 months for a gifted child who is psychologically ready, shown by a written recommendation from a professional psychologist or, where none is available, the school's teachers' council (Art. 11)Enter a date of birth
Junior high (SMP) grade 7: at most 15 (Art. 12)Enter a date of birth
Senior high (SMA/SMK) grade 10: at most 21 (Art. 13)Enter a date of birth
Estimated grade in 2027/2028 if SD started at age 7Enter a date of birth
Estimated grade in 2027/2028 if SD started at age 6Enter a date of birth

Born in which year, how old in 2026?

If only the birth year is known, the age has two possibilities: the first number if the birthday has passed this year, the second if it has not. For the exact age in days, type the full date of birth above. The table recalculates itself every new year.

Age by birth year, 1927 to 2026
Birth yearBirthday passedBirthday not yetGeneration (BPS)
20260 years—Post Gen Z
20251 year0 yearsPost Gen Z
20242 years1 yearPost Gen Z
20233 years2 yearsPost Gen Z
20224 years3 yearsPost Gen Z
20215 years4 yearsPost Gen Z
20206 years5 yearsPost Gen Z
20197 years6 yearsPost Gen Z
20188 years7 yearsPost Gen Z
20179 years8 yearsPost Gen Z
201610 years9 yearsPost Gen Z
201511 years10 yearsPost Gen Z
201412 years11 yearsPost Gen Z
201313 years12 yearsPost Gen Z
201214 years13 yearsGen Z
201115 years14 yearsGen Z
201016 years15 yearsGen Z
200917 years16 yearsGen Z
200818 years17 yearsGen Z
200719 years18 yearsGen Z
200620 years19 yearsGen Z
200521 years20 yearsGen Z
200422 years21 yearsGen Z
200323 years22 yearsGen Z
200224 years23 yearsGen Z
200125 years24 yearsGen Z
200026 years25 yearsGen Z
199927 years26 yearsGen Z
199828 years27 yearsGen Z
199729 years28 yearsGen Z
199630 years29 yearsMillennial
199531 years30 yearsMillennial
199432 years31 yearsMillennial
199333 years32 yearsMillennial
199234 years33 yearsMillennial
199135 years34 yearsMillennial
199036 years35 yearsMillennial
198937 years36 yearsMillennial
198838 years37 yearsMillennial
198739 years38 yearsMillennial
198640 years39 yearsMillennial
198541 years40 yearsMillennial
198442 years41 yearsMillennial
198343 years42 yearsMillennial
198244 years43 yearsMillennial
198145 years44 yearsMillennial
198046 years45 yearsGen X
197947 years46 yearsGen X
197848 years47 yearsGen X
197749 years48 yearsGen X
197650 years49 yearsGen X
197551 years50 yearsGen X
197452 years51 yearsGen X
197353 years52 yearsGen X
197254 years53 yearsGen X
197155 years54 yearsGen X
197056 years55 yearsGen X
196957 years56 yearsGen X
196858 years57 yearsGen X
196759 years58 yearsGen X
196660 years59 yearsGen X
196561 years60 yearsGen X
196462 years61 yearsBaby Boomer
196363 years62 yearsBaby Boomer
196264 years63 yearsBaby Boomer
196165 years64 yearsBaby Boomer
196066 years65 yearsBaby Boomer
195967 years66 yearsBaby Boomer
195868 years67 yearsBaby Boomer
195769 years68 yearsBaby Boomer
195670 years69 yearsBaby Boomer
195571 years70 yearsBaby Boomer
195472 years71 yearsBaby Boomer
195373 years72 yearsBaby Boomer
195274 years73 yearsBaby Boomer
195175 years74 yearsBaby Boomer
195076 years75 yearsBaby Boomer
194977 years76 yearsBaby Boomer
194878 years77 yearsBaby Boomer
194779 years78 yearsBaby Boomer
194680 years79 yearsBaby Boomer
194581 years80 yearsPre-Boomer
194482 years81 yearsPre-Boomer
194383 years82 yearsPre-Boomer
194284 years83 yearsPre-Boomer
194185 years84 yearsPre-Boomer
194086 years85 yearsPre-Boomer
193987 years86 yearsPre-Boomer
193888 years87 yearsPre-Boomer
193789 years88 yearsPre-Boomer
193690 years89 yearsPre-Boomer
193591 years90 yearsPre-Boomer
193492 years91 yearsPre-Boomer
193393 years92 yearsPre-Boomer
193294 years93 yearsPre-Boomer
193195 years94 yearsPre-Boomer
193096 years95 yearsPre-Boomer
192997 years96 yearsPre-Boomer
192898 years97 yearsPre-Boomer
192799 years98 yearsPre-Boomer

How age is counted here, and what the Indonesian age rules mean

Updated 21 October 2026

This online age calculator answers "how old am I" by birthdays: you turn a year older on your birthday, not every 365 days. That decides eligibility, because Indonesia's rules for the ID card, driving licence, voting, marriage, school, and civil service count from the day an age is reached.

Years, months, and days from the last birthday

The calculator counts full years, then full months since the last birthday, then the remaining days. Someone born on 23 August 1984 is 42 years 1 month 27 days old on 20 October 2026: the 42nd birthday fell on 23 August 2026, a full month later came 23 September, then 27 days. The total, 15,398 days, includes leap days. Years and months match Excel's DATEDIF, and results always match the NIK decoder.

Born on 29 February? In other years you turn a year older on 1 March, shown as N years 0 months 1 day, as with the Excel formula below. We found no Indonesian regulation on this, so an agency may use 28 February.

"Today" comes from your device's clock and time zone, not from a server or a fixed Western Indonesia Time (WIB), so users in other time zones get their local date. The result section shows that clock; if it is wrong, so is the result. For another day, choose "1 July" or "Another date" under "Age on".

The age in hours, minutes, and seconds counts from 00:00 on the birth date, since few people know their birth time; enter one to count from it, with seconds from 00. It is only an extra: Indonesian age rules use dates, not hours.

School entry age in Indonesia, counted on 1 July

School admissions (SPMB) count age on 1 July of the school year applied for. Under Primary and Secondary Education Minister Regulation 3/2025 Art. 11, primary school (SD) entrants aged 7 get priority, the minimum is 6, and a child of 5 years 6 months can be accepted with a written recommendation from a professional psychologist or the teachers' council.

Junior high (SMP) grade 7 accepts applicants of at most 15 and senior high (SMA/SMK) grade 10 at most 21, both on 1 July; "at most 15" means not yet 16. With no minimum age for SMP and SMA, the calculator says "not SMP age yet" under 11 and "not SMA/SMK age yet" under 14.

These rules still govern 2026/2027 admissions; new ones usually appear in January or February. Grade estimates assume no repeated or skipped years. A 17-year-old is in grade 10, 11, or 12: a child who started primary school at 7 is 16 at the start of grade 10 and 17 at the start of grade 11, while one who started at 6 is 17 at the start of grade 12.

Meeting the age rule is not the same as being eligible

"Met" means one age condition is satisfied; the licence test, ID card biometric enrolment, or voter registration still apply. Each row names its basis: the e-KTP at 17 (Law 24/2013 Art. 63), licence ages by class from 17 for SIM A and SIM C to 23 for SIM BII umum (Police Regulation 5/2021 Art. 8), marriage at 19 for both sexes (Law 16/2019 Art. 7), and voting at 17 on polling day (KPU Regulation 7/2022 Art. 4).

The legal smoking and drinking age is 21, and both rules bind the seller: Government Regulation 28/2024 Art. 434 bans selling tobacco products and e-cigarettes to anyone under 21, and Trade Minister Regulation 20/M-DAG/PER/4/2014 Art. 15 allows alcoholic drinks to be sold only to buyers aged 21 or over who show an ID card.

For the civil service (CPNS), Government Regulation 11/2017 and MenPANRB Regulation 6/2024, both Art. 23, set 18 to 35 "when applying"; Presidential Decree 17/2019 allows 40 for posts such as doctors, lecturers, and researchers. How to count 35 is not specified; the Ministry of Education's 2019 CPNS FAQ used "35 years 0 months 0 days", so the calculator says "met" up to the 35th birthday and "depends on the agency" until the day before the 36th.

Contract civil servants (PPPK) must be at least 20 (Government Regulation 49/2018 Art. 16), and senior citizens (lansia) count from 60 (Law 13/1998 Art. 1(2)). The civil service retirement age is 58, 60, or 65 depending on the post (Law 20/2023 Art. 55; Government Regulation 11/2017 Art. 239). Teachers retire at 60 and lecturers at 65, extendable to 70 for professors with outstanding achievement (Law 14/2005 Arts. 30 and 67). Since the post is unknown, these appear as dates; the NIP decoder has details. The BPJS pension age rises one year every three years from 2019 until 65 (Government Regulation 45/2015 Art. 15).

Adulthood, the age of majority, is not shown as a status because the sources give two ages. As explained on the Supreme Court's site (MariNews, 10 July 2026), Civil Code Article 330 says 21 or married, while Marriage Law Article 47 and Supreme Court Circular 7/2012 use 18.

Age from a NIK, and why it can differ from the ID card

The NIK also stores the birth date in digits 7 to 12 (day, month, two-digit year, with 40 added to the day for women), and the NIK decoder computes age from it with the same engine. A different result usually means the birth date was corrected after the NIK was issued; the date on the KTP and family card prevails. The bulk NIK decoder does this for hundreds of NIKs at once.

Excel formula for age from a date of birth

To calculate age in Excel, put the date of birth in A2 and the reference date in B2 (or TODAY()). DATEDIF returns full years and months, and EDATE completes the days. The argument separator follows your locale: commas for English, semicolons for Indonesian.

ResultFormula
Age in full years=DATEDIF(A2,B2,"Y")
Months after the full years=DATEDIF(A2,B2,"YM")
Days after the full months=B2-EDATE(A2,DATEDIF(A2,B2,"M"))
Age on 1 July 2027=DATEDIF(A2,DATE(2027,7,1),"Y")
Date of the 17th birthday=EDATE(A2,12*17)

Microsoft advises against DATEDIF with "MD", which can return wrong results; the EDATE formula matches this calculator. If a result shows as a date, format the cell as a number. For 29 February births, EDATE gives 28 February. DATEDIF is missing from Excel's function list but works when typed. Formulas that read the birth date from a NIK are on the bulk NIK page.

Weton, zodiac, Chinese zodiac, and the Hijri date

Weton combines the weekday with the five-day Javanese market cycle (Legi, Pahing, Pon, Wage, Kliwon), anchored on 17 August 1945, a Friday Legi; neptu adds their two values. Zodiac boundaries can differ by a day between sources. The Chinese zodiac changes at Chinese New Year, not 1 January, so people born in January or early February often have the previous year's animal. The Hijri date follows the Umm al-Qura calendar, which can differ from Indonesia's official calendar by about a day.

Generations as defined by Statistics Indonesia

The generation label follows the grouping Statistics Indonesia (BPS) used in the 2020 census: Post Gen Z born 2013 onward, Gen Z 1997 to 2012, Millennials 1981 to 1996, Gen X 1965 to 1980, Baby Boomers 1946 to 1964, and Pre-Boomers before that. BPS's ranges skip 1945; here it counts as Pre-Boomer.

What this tool cannot do

It only computes from the date you type; it does not check population records, and the age rules shown are readings of the regulations named, not an agency's decision. It does not compute pregnancy age, pet age, or prepaid SIM card validity.

Sources

Frequently asked questions

From when is age counted?

From the date of birth to the reference date, by birthdays: you are one year older on your birthday each year. The calculator shows full years, then full months since the last birthday, then the remaining days, plus the total number of days taken straight from the difference between the two dates.

Born in 2005, how old in 2026?

21 if the birthday has passed, 20 if not. The age-by-birth-year table on this page gives both numbers for every year; type the full date of birth for the age down to the day.

What is the legal drinking and smoking age in Indonesia?

21 for both, and both rules bind the seller. Government Regulation 28/2024 Article 434(1)(b) bans selling tobacco products and e-cigarettes to anyone under 21 or to pregnant women, and Article 458 bans telling anyone under 21 to sell, buy, or use them. Trade Minister Regulation 20/M-DAG/PER/4/2014 Article 15 allows alcoholic drinks to be sold only to buyers aged 21 or over who show an ID card to the staff.

At what age can you get an Indonesian ID card (KTP)?

The e-KTP is required from 17, or earlier on marriage (Law 24/2013 Article 63(1)). Unmarried children under 17 can have a child ID card, the KIA (Home Affairs Regulation 2/2016).

At what age can you get a driving licence (SIM A or SIM C) in Indonesia?

At 17 for SIM A and SIM C, the same as SIM D and DI. Other classes: CI at 18, CII at 19, A umum and BI at 20, BII at 21, BI umum at 22, BII umum at 23 (Police Regulation 5/2021 Article 8). Other requirements, such as paperwork, health, and the tests, still apply.

What is the retirement age in Indonesia?

There is no single one. Civil servants retire at an age set by their post: 58, 60, or 65 for most posts (Law 20/2023 Article 55; Government Regulation 11/2017 Article 239). Teachers retire at 60 and lecturers at 65, and professors with outstanding achievement may have their retirement extended to 70 (Law 14/2005 Articles 30 and 67). For private-sector workers, the BPJS pension benefit age rose to 57 in 2019 and goes up one year every three years until 65, so it is 59 from 2025 to 2027 (Government Regulation 45/2015 Article 15); it is the age for claiming that benefit, not a mandatory retirement age.

Where do today's date and time come from?

From your device's clock and time zone, not from a server and not always from Western Indonesia Time (WIB), so users in central or eastern Indonesia or abroad get their local date. The result section shows the device clock that was used. The age to the second counts from 00:00 on the date of birth unless you enter a time of birth; seconds always start at 00.

Is the date of birth I type stored?

No. Everything is computed in your browser. The date is not sent to a server, is never placed in the page address, and is gone when the page closes. The copy button only copies text to your own clipboard.

Other tools