Our calculation methods and sources
Every formula the calculator uses, the units and rounding behind it, where it comes from, and the test cases that check it.
Sources last checked . How we write and check
Calculation engine version 1, released November 12, 2026. Share links record this version so results can be traced if a formula ever changes.
Formulas
| Method | Estimated due date (EDD) | Source |
|---|---|---|
| Last period (LMP) | LMP + 280 days + (cycle length − 28) days | 1,2,3 |
| Conception | Conception + 266 days | 1 |
| IVF transfer | Transfer + 266 − embryo age (day 3: 263; day 5: 261; day 6: 260) | 1 |
| Egg retrieval | Retrieval + 266 days | 1 |
| Ultrasound age | Scan date + 280 − (7 × weeks + days) | 1 |
| Crown-rump length | Age (days) = round(8.052 × √CRL(mm) + 23.73), then as ultrasound | 4,5 |
| Known due date | Kept as entered | — |
| Known weeks + days | Date + 280 − (7 × weeks + days) | 1 |
From the EDD we derive an equivalent LMP (EDD − 280 days) and estimated conception (EDD − 266 days). Gestational age on any date is 280 − (EDD − date) days, shown as completed weeks plus days.6
Inputs, units and limits
- All dates are calendar dates with no time of day. “Today” is your device’s local date.
- Cycle length: whole days from 20 to 45. Outside 24–38 days, the normal range in FIGO’s 2018 definitions, we show a note recommending scan dating.7 “Not sure or irregular” uses 28 days and says so.
- Scan age: 4+0 to 42+6. Weeks-pregnant input: 0+0 to 42+6.
- Crown-rump length: 6 to 84 mm, entered in millimetres. Above 84 mm, ACOG recommends dating by other measurements.1
- Period, conception, transfer and scan dates can’t be in the future. A known due date can’t be more than 280 days away.
Rounding
CRL ages are rounded to the nearest whole day. For example, 45 mm gives 77.7 days, rounded to 11+1; 84 mm gives 97.5 days, rounded to 14+0. We also show the Hadlock (1992) result for the same CRL, computed with c in centimetres.8,9 All other methods are exact whole-day arithmetic.
Derived dates
- Trimesters (ACOG): first through 13+6, second 14+0–27+6, third from 28+0.10
- Term categories (ACOG CO 579): early term 37+0–38+6, full term 39+0–40+6, late term 41+0–41+6, postterm from 42+0.11
- Conception window: the six days ending on estimated conception, the interval in which intercourse led to pregnancy in Wilcox et al. (1995). It assumes ovulation on the estimated day, which often isn’t true.12,13
- Week sizes: crown-rump length for weeks 7–13 from the inverse Robinson equation; estimated weight for weeks 14–40 from Hadlock’s 50th centile, ln(EFW) = 0.578 + 0.332·GA − 0.00354·GA² (GA in weeks), which reproduces the published 35 g at 10 weeks, 331 g at 20 and 3619 g at 40.14
Ultrasound redating thresholds
| Gestational age by LMP at the scan | Redate if difference is more than |
|---|---|
| through 8 weeks 6 days | 5 days |
| 9 weeks 0 days to 13 weeks 6 days | 7 days |
| 14 weeks 0 days to 15 weeks 6 days | 7 days |
| 16 weeks 0 days to 21 weeks 6 days | 10 days |
| 22 weeks 0 days to 27 weeks 6 days | 14 days |
| 28 weeks 0 days and beyond | 21 days |
Source: ACOG Committee Opinion 700.1 “More than” is strict: a difference equal to the threshold does not trigger redating.
Care windows
| Region | Topic | Window | Source |
|---|---|---|---|
| US | First-trimester screening options | 10+0 to 13+6 | 15 |
| US | Most accurate time for ultrasound dating | 7+0 to 13+6 | 1 |
| US | Anatomy ultrasound | 18+0 to 22+6 | 16 |
| US | Gestational diabetes screening | 24+0 to 28+6 | 17 |
| US | Tdap (whooping cough) vaccine | 27+0 to 36+6 | 18 |
| US | Rh immune globulin, if Rh negative | 28+0 to 28+6 | 19 |
| US | RSV vaccine (seasonal) | 32+0 to 36+6 | 20 |
| US | Group B strep test | 36+0 to 37+6 | 21 |
| UK | Booking appointment | 8+0 to 12+6 | 22 |
| UK | Dating scan | 11+2 to 14+1 | 23 |
| UK | 20-week screening scan | 18+0 to 20+6 | 24 |
| UK | Whooping cough vaccine | 16+0 to 31+6 | 25 |
| UK | Gestational diabetes test, if higher chance | 24+0 to 28+6 | 22 |
| UK | RSV vaccine | 28+0 to 28+6 | 25 |
These are typical discussion windows, not appointments. Schedules vary by practice and by your health.
Reference cases
Each case is computed by the live engine when the site is built, and checked against an independently worked answer.
| Input | Basis | Expected | Engine |
|---|---|---|---|
| Last period Jan 1, 2026, 28-day cycle | Naegele: +1 year −3 months +7 days | Oct 8, 2026 | Oct 8, 2026 ✓ |
| Last period Jun 1, 2027 (crosses Feb 29) | 280 days | Mar 7, 2028 | Mar 7, 2028 ✓ |
| Last period Jan 1, 2026, 32-day cycle | 280 + 4 days | Oct 12, 2026 | Oct 12, 2026 ✓ |
| Conception Jan 15, 2026 | 266 days | Oct 8, 2026 | Oct 8, 2026 ✓ |
| Day-3 transfer Jan 18, 2026 | 263 days (ACOG CO 700) | Oct 8, 2026 | Oct 8, 2026 ✓ |
| Day-5 transfer Jan 20, 2026 | 261 days (ACOG CO 700) | Oct 8, 2026 | Oct 8, 2026 ✓ |
| Scan Mar 12, 2026 at 10+0 | Scan + 280 − 70 days | Oct 8, 2026 | Oct 8, 2026 ✓ |
| CRL 45 mm on Mar 20, 2026 | Robinson: 77.7 days → 11+1 (78 days) | Oct 8, 2026 | Oct 8, 2026 ✓ |
Testing
The engine is a standalone TypeScript module with an automated test suite. It checks every formula above, threshold equality, trimester and term boundaries, leap years, conversion against an independent calendar for every day from 1950 to 2100, daylight-saving transitions, and runs in several time zones. Dates are converted to whole day numbers, so no timestamp arithmetic is involved.
Limitations
- The calculator estimates dates. It cannot confirm a pregnancy, detect problems or predict the day of birth.
- Period-based dates assume ovulation timing that may be wrong, especially with irregular cycles.
- CRL conversion depends on a correct measurement, which needs a trained sonographer.
- Week-by-week sizes are population references, not measurements of any baby.
- The calculations and content have been checked against published sources, but have not been reviewed by a clinician.
Change log
- November 12, 2026, version 1. Launch: six dating methods, CRL conversion, ACOG redating comparison, US and UK care windows, calendar export.
References
- Committee Opinion No. 700: Methods for Estimating the Due DateAmerican College of Obstetricians and Gynecologists, with AIUM and SMFM, 2017
- Pregnancy due date calculatorNHS (England)
- Naegele’s rule: a reappraisalBJOG 107(11):1433–1435, 2000
- A critical evaluation of sonar “crown-rump length” measurementsBritish Journal of Obstetrics and Gynaecology 82(9):702–710, 1975
- Gestational age estimated from crown-rump length by Robinson 1975 methodLOINC / Regenstrief Institute
- reVITALize: Obstetrics Data DefinitionsAmerican College of Obstetricians and Gynecologists
- The two FIGO systems for normal and abnormal uterine bleeding symptoms … 2018 revisionsInternational Journal of Gynecology & Obstetrics 143(3):393–408, 2018
- Fetal crown-rump length: reevaluation of relation to menstrual age (5–18 weeks) with high-resolution real-time USRadiology 182(2):501–505, 1992
- Gestational age estimated from crown-rump length by Hadlock 1992 methodLOINC / Regenstrief Institute
- How Your Fetus Grows During PregnancyAmerican College of Obstetricians and Gynecologists
- Committee Opinion No. 579: Definition of Term PregnancyAmerican College of Obstetricians and Gynecologists, 2013
- Timing of sexual intercourse in relation to ovulationNew England Journal of Medicine 333(23):1517–1521, 1995
- The timing of the “fertile window” in the menstrual cycle: day specific estimates from a prospective studyBMJ 321(7271):1259–1262, 2000
- In utero analysis of fetal growth: a sonographic weight standardRadiology 181(1):129–133, 1991
- Practice Bulletin No. 226: Screening for Fetal Chromosomal AbnormalitiesAmerican College of Obstetricians and Gynecologists, 2020
- Ultrasound ExamsAmerican College of Obstetricians and Gynecologists
- Practice Bulletin No. 190: Gestational Diabetes MellitusAmerican College of Obstetricians and Gynecologists, 2018
- Tdap Vaccination for Pregnant WomenUS Centers for Disease Control and Prevention
- Practice Bulletin No. 181: Prevention of Rh D AlloimmunizationAmerican College of Obstetricians and Gynecologists, 2017
- Protecting Infants from RSVUS Centers for Disease Control and Prevention
- Committee Opinion No. 797: Prevention of Group B Streptococcal Early-Onset Disease in NewbornsAmerican College of Obstetricians and Gynecologists, 2020
- Your antenatal appointmentsNHS (England)
- Antenatal care (NG201)National Institute for Health and Care Excellence, 2021
- 20-week screening scanNHS (England)
- Vaccinations in pregnancyNHS (England)
Links checked November 12, 2026. Citing a source does not mean it endorses this site.