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.
| Result | Formula |
|---|---|
| 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
- Law 24/2013 Art. 63(1); Home Affairs Regulation 2/2016 Arts. 1(7) and 3.
- Police Regulation 5/2021 Art. 8, unchanged by Police Regulation 2/2023.
- Law 16/2019 Art. 7(1).
- Law 7/2017 Art. 1(34); KPU Regulation 7/2022 Art. 4(a).
- Law 35/2014 Art. 1(1).
- Government Regulation 28/2024 Arts. 434(1)(b) and 458.
- Trade Minister Regulation 20/M-DAG/PER/4/2014 Art. 15, unchanged by its six amendments.
- Government Regulation 11/2017 Arts. 23 and 239; MenPANRB Regulation 6/2024 Art. 23; Presidential Decree 17/2019; Ministry of Education CPNS FAQ 2019; Government Regulation 49/2018 Art. 16; Law 20/2023 Art. 55.
- Law 14/2005 Arts. 30(4) and 67(4) and (5).
- Law 13/1998 Art. 1(2); Government Regulation 45/2015 Art. 15.
- Primary and Secondary Education Minister Regulation 3/2025 Arts. 10 to 15.
- Statistics Indonesia, 2020 census.
- Chinese New Year dates 1900 to 2050 (Helmer Aslaksen's data).
- Microsoft, DATEDIF function.