Gestational Age Calculator | Fetal Age from LMP & Clinical
A gestational age calculator measures how far along a pregnancy has progressed, counted from the mother's last menstrual period (LMP). Unlike postnatal chronological age โ which starts at birth โ gestational age starts roughly two weeks before conception, because the medical convention counts from the first day of the LMP. This guide gives you an interactive terminal-style calculator, the LMP and clinical (ultrasound) formulas, the three-trimester breakdown, and the medical-versus-legal definition of the age of an unborn child.
$ awaiting LMP input...
$ enter the mother's last menstrual period date belowโGestational Age Calculator: LMP Method vs Clinical/Ultrasound Method
There are two accepted ways to determine gestational age, and the gestational age calculator above supports both. The LMP method asks the mother for the first day of her last menstrual period and counts forward; it is simple but assumes a textbook 28-day cycle with ovulation on day 14. The clinical method measures the fetus directly โ most commonly the crown-rump length (CRL) in the first trimester โ and is more accurate when the LMP is uncertain or the cycle is irregular. By definition, gestational age means the age of an unborn child calculated from the LMP, while the clinical age of the unborn child is calculated from direct fetal measurement.
| Method | Reference Point | Accuracy | Best Used |
|---|---|---|---|
| LMP | First day of last menstrual period | ยฑ5โ7 days (regular cycle) | Known LMP, regular 28-day cycle |
| Clinical (CRL) | Crown-rump length on ultrasound | ยฑ3โ5 days (first trimester) | Uncertain LMP, irregular cycle |
Gestational Age Formula & Interactive LMP Calculator
The mother lmp to calculate age of unborn child workflow is the core of the LMP method. The formula is straightforward: gestational age in days equals today's date minus the LMP date, then converted to weeks and remaining days (7 days per week). For the estimated due date (EDD), Naegele's rule adds 280 days to the LMP โ reflecting the average 40-week gestation. When the cycle length differs from 28 days, the EDD shifts by the difference (a 35-day cycle pushes ovulation later, so 7 days are added to the EDD).
GA_days = today โ LMP ย |ย GA_weeks = floor(GA_days / 7), remainder = GA_days mod 7
EDD = LMP + 280 days ย |ย EDD_adjusted = LMP + 280 โ (cycleLength โ 28)
Toggle the "Adjust for cycle length" switch in the terminal above to enter your actual cycle length, and the EDD recalculates instantly. Toggle "Ultrasound CRL correction" and the calculator switches to the Hadlock first-trimester approximation GA(weeks) โ CRL(mm)/10 + 6.5 โ the confidence bar turns green because ultrasound-anchored dating is more precise than LMP alone.
Computation Logic Decomposition Table
| Step | Purpose | Mechanism | Risk Level |
|---|---|---|---|
| 1. Parse LMP | Establish the reference start date | Date input โ JS Date object | Medium (recall error) |
| 2. Compute elapsed | Days since LMP | today โ LMP in milliseconds โ days | Low |
| 3. Convert to weeks+days | Express in clinical format | floor(days/7) weeks, mod 7 days | Low |
| 4. Classify trimester | Map weeks to 1st/2nd/3rd trimester | โฅ28w โ 3rd, โฅ14w โ 2nd, else 1st | Low |
| 5. Apply Naegele's rule | Estimate due date | LMP + 280 days (cycle-adjusted) | High (LMP uncertain) |
Roughly 40% of women cannot recall their LMP precisely, and cycle irregularity adds further error. If the LMP-derived gestational age differs from the ultrasound-derived age by more than 7 days in the first trimester (or 10โ14 days later), clinicians discard the LMP and use the ultrasound date. Do not rely on LMP alone for clinical decisions.
Three Trimesters & Fetal Development Milestones
Gestational age is conventionally grouped into three trimesters, each spanning roughly 13โ14 weeks. The gestation age means the age of an unborn child calculated from the LMP, and these trimester boundaries help clinicians stage prenatal care and developmental screening.
| Trimester | Weeks | Key Milestone |
|---|---|---|
| 1st | 0w0d โ 13w6d | Organogenesis; heartbeat detectable ~6 weeks; CRL dating most accurate |
| 2nd | 14w0d โ 27w6d | Anatomy scan at 18โ22 weeks; quickening (fetal movement felt) |
| 3rd | 28w0d โ 40w+ | Viability from ~24 weeks; lung maturation; full term at 37โ40 weeks |
The Clinical Age of the Unborn Child: Medical vs Legal Definition
The clinical age of the unborn child is calculated from direct fetal measurement โ most often the crown-rump length in the first trimester, or biparietal diameter and femur length later on. In medicine, this clinical age is used to confirm or correct the LMP-based estimate and to time interventions like the anatomy scan or steroid administration for fetal lung maturation.
In law, the "age of an unborn child" carries very different consequences. Some jurisdictions define gestational age thresholds for viability (often 22โ24 weeks) that trigger legal protections or restrictions. Gestational age also appears in statutes governing fetal homicide, stillbirth certification, and abortion cutoffs โ contexts where a week-level difference can change the legal outcome. Because the gestational age means the age of an unborn child calculated from the LMP, while clinical age is measured from the fetus itself, the two can diverge by a week or more, and courts typically defer to the ultrasound-dated clinical age when the LMP is contested.
Never substitute LMP-based gestational age for clinical age in a legal or clinical decision without confirming the ultrasound date. The LMP estimate can be off by 1โ2 weeks, which is significant near viability thresholds. Always cross-check with the most recent ultrasound report.
From Gestational to Corrected Age: Bridging Prenatal and Postnatal
Gestational age at birth also sets up the postnatal concept of "corrected age" โ the developmental age used for premature infants. If a baby is born at 32 weeks gestational age (8 weeks early), the corrected age subtracts those 8 weeks from the chronological age until the child turns two. So a 6-month-old born at 32 weeks has a corrected age of 4 months, which is the age against which developmental milestones should be assessed. This is why gestational age and postnatal chronological age form a continuous chain: the gestational age calculator feeds directly into the corrected-age calculation used in pediatric follow-up.
To continue that chain after birth, see our guide on how to calculate a child's chronological age and the child's age in weeks calculator for the postnatal period.
Conclusion
The gestational age calculator above converts the mother's LMP into precise gestational weeks and days, classifies the trimester, and estimates the due date via Naegele's rule โ with an optional ultrasound CRL correction for higher confidence. Whether you use the LMP method or the clinical method, remember that gestational age is measured from the last menstrual period, not from conception, and that ultrasound dating supersedes LMP dating when the two diverge by more than a week in the first trimester. For any clinical decision, always confirm the calculated result with your obstetric provider.
Related Articles
How to Calculate a Child's Chronological Age - Complete Guide
Complete guide to calculating your child's chronological age accurately.
Calculate Child's Age in Months - Precise Monthly Age Calculator
Precise guide to calculating your child's age in months.
Calculating Tube Size Based on Child's Age - Medical Guide
Medical guide for calculating tube sizes based on child age.
PALS Tube Size Guidelines - Pediatric Advanced Life Support Sizing
PALS guidelines for calculating tube sizes in pediatric emergencies.
Adult Disabled Before Age 22 - Child Social Security Benefits Calculator
Guide to Social Security benefits for adults disabled before age 22.
Age Calculator for 13-Year-Old Children - Complete Development Guide
Complete development guide for 13-year-old children and adolescents.
Age Calculator for Child School Enrollment - Kindergarten Cutoff Guide
Guide to school enrollment age requirements and kindergarten cutoff dates.
Child Tax Credit Age Limit - Calculate Qualifying Child for Credits
Guide to child tax credit age requirements and dependent child rules.
Calculate Child's Age in Weeks - Weekly Age Calculator Guide
Guide to calculating a child's age in weeks for developmental tracking.
Calculate Child Weight by Age - Growth Chart and BMI Calculator
Guide to calculating child weight by age using growth charts.
Calculate Child's Shoe Size by Height, Weight & Age - Complete Guide
Complete guide to calculating child's shoe size using height, weight, and age.
School Age Calculator New York - NY Kindergarten & Grade Placement Guide
Complete guide to NY school enrollment age requirements and kindergarten cutoff dates.
How Many Months Is My Baby - Complete Age Calculation Guide
Complete guide to calculating your baby's age in months.
How to Compute Chronological Age - Step-by-Step Calculation Guide
Step-by-step guide to computing chronological age accurately.
When Will My Child Start Kindergarten - Calculator & Guide
Complete guide to calculating when your child will start kindergarten.
How Old Is a Child - Understanding Child Age Ranges
Complete guide to understanding child age ranges and development stages.
How Old Is My Child in Months - Monthly Age Calculator
Precise guide to calculating your child's age in months.
How to Calculate Baby's Age - Complete Guide
Complete guide to calculating your baby's age accurately.
How Old Is My Baby in Months - Baby Age Calculator
Comprehensive guide to calculating your baby's age in months.
Social Security Disability Calculator for Child
Guide to Social Security disability benefits for children by age.
How Old Is My Baby in Weeks
Complete weekly development guide for babies by week of age.
What Age Child Tax Credit
Guide to Child Tax Credit age eligibility requirements.
How Old Is My Baby in Weeks Calculator
Quick calculator tool to find your baby's age in weeks.
What Age Is a Kid
Cultural and conversational guide to understanding when someone is a kid.
Child Status Protection Act Age Calculator | CSPA Formula
Free child status protection act age calculator with CSPA formula and age-out eligibility check.
Child Dose Calculator by Age | Pediatric Dosing Rules
Child dose calculator by age using Young's and Clark's pediatric dosing rules.
How Many Months Is 18 Years โ Months Converter & Milestones
Years-to-months converter plus an 18-year milestone timeline from birth to legal adulthood.
How to Predict Child Height Methods โ 4 Ways, Best Age
Four child height prediction methods compared: accuracy, best age window, worked examples, and why online calculators disagree.
Child Development Assessment Guide โ EYFS & Ages 4-6
Five assessment frameworks compared, a 4-6 year milestone checklist, and when assessment works best.
What Age Should a Child Read? Milestones by Age
Reading milestones by age: pre-reading 3-5, decoding 5-6, fluency 7-8, with a readiness self-check.
What Age Should a Child Know the Alphabet? Ages 2-6
Letter, number, counting, and name-writing milestones for ages 2-6 with a printable checklist.
What Age Should a Child Start Talking? Speech Timeline
Typical speech milestones from cooing to clear narration, with vocabulary counts by age.
What Age Should a Child Be Potty Trained? Age Guide
Potty training ages for day and night, readiness checklist, and autistic child timelines by age.
What Age Should a Child Tie Their Shoes? Skills by Age
Self-care skills by age โ shoe tying, buttons, deodorant, pacifier, bike โ with teaching steps.
Child Development Stages by Age: Milestones & Behavior
The seven development stages from 0-18 with behaviors, brain landmarks, and key ages.
Child T-Shirt Size Chart by Age: Clothing Size Guide
US kids sizes 2T-16 by age, height, chest, and waist โ with height-first sizing rules.
What Age Should a Child Get a Phone? Readiness Guide
Phone-readiness checklist, grade-band device ladder, and a family decision tree.
When to Start Daycare or Nursery โ Age & Readiness Guide
Daycare and nursery starting ages by care type, with readiness checklists and FAQs.
What Age Is School Age? School-Aged Children Defined (Ages 5-12)
The school age range defined: 5-12 vs 6-12, characteristics, grammar and care terms.
What Age Is Preschool? Preschool & Pre-K Ages Explained
Preschool and pre-K ages explained: bands, state names, and readiness signals.
School Ages Around the World โ Starting Ages by Country
Country-by-country school ages: entry ages, compulsory spans, cutoffs and graduation.
What Age Can Kids Start Boarding School? Age Guide for Parents
Boarding school starting ages by system: UK prep, US junior and mainstream, readiness and compromises.
What Age Is Montessori School For? Age Range by Program Level
Montessori age range level by level: best starting age, requirements, and the supply cliff.