Naegele's Rule Was Published in 1812. Your Due-Date Calculator Still Uses It Alone.
Naegele's rule adds 280 days to the LMP. ACOG Committee Opinion 700 uses the ultrasound date when they differ by more than 5 to 21 days, by gestational age.
> Not medical advice. This tool reports what published obstetric standards (ACOG Committee Opinion 700, Robinson-Fleming 1975) compute from your inputs. Dating decisions belong to you and your clinician. The numbers here are arithmetic, not advice.
Pick a date: LMP 2026-01-01, first-trimester scan on 2026-03-01, sonographer measures the embryo at 10w0d. Naegele's Rule says EDD = LMP + 280 days = 2026-10-08. The ultrasound says GA at scan = 10w0d, so EDD = scan + (280 − 70) = 2026-09-27. The two estimates disagree by 11 days.
ACOG Committee Opinion 700 (May 2017, reaffirmed 2022) sets the threshold by gestational age at the scan. An ultrasound GA of 10w0d falls in the 9w0d – 13w6d band, where the threshold is 7 days. 11 > 7, so the ultrasound EDD replaces the LMP EDD. A calculator that only adds 280 days to the LMP cannot make this decision, and one that uses a single fixed threshold gets it wrong at other gestational ages.
The 5-Tier Table
ACOG #700, Table 1. Above the threshold, adopt the ultrasound EDD; at or below, keep the LMP EDD. This tool picks the band from the ultrasound GA at scan (from the CRL, or the GA you enter), as in the example above. By LMP that scan was at 8w3d, which would fall in the ≤ 8w6d band instead.
| Ultrasound GA at scan | Threshold |
|---|---|
| ≤ 8w6d | > 5 days |
| 9w0d – 15w6d | > 7 days |
| 16w0d – 21w6d | > 10 days |
| 22w0d – 27w6d | > 14 days |
| ≥ 28w0d | > 21 days |
The thresholds widen because CRL precision degrades after the first trimester; by the third trimester, biometry can be off by three weeks and still be consistent with an LMP date worth keeping. The whole point of the table is that "is this discordance big enough to redate?" depends on when the scan was taken, not on a single global cutoff.
Encoded directly:
export function acogThresholdDays(gaAtScanDays: number): number {
if (gaAtScanDays <= 8 * 7 + 6) return 5;
if (gaAtScanDays <= 15 * 7 + 6) return 7;
if (gaAtScanDays <= 21 * 7 + 6) return 10;
if (gaAtScanDays <= 27 * 7 + 6) return 14;
return 21;
}
Comparison is strict >. A 5-day discordance at 8w0d keeps LMP. A 6-day discordance at the same GA redates. The ladder reproduces every published worked example in the Committee Opinion and in the SMFM consult series that endorses it.
Robinson-Fleming, Not (CRL + 42) / 7
A second naive shortcut in old code: convert crown-rump length to gestational age with GA_days = (CRL_mm + 42) / 7. It's a linearization that sits roughly on the right line between CRL 20 and CRL 60, then drifts. The published formula is Robinson and Fleming, BJOG 1975:
GA_days = round(8.052 * sqrt(CRL_mm * 1.037) + 23.73)
The 1.037 multiplier is the BMUS / FASP correction adopted across NHS fetal medicine units after re-analysis of CRL distributions; it pushes GA up by roughly half a day across the valid CRL range (5 – 84 mm, i.e. ~6w0d – 14w1d). For a CRL of 32.7 mm — a common 10-week scan — Robinson-Fleming returns 71 days (10w1d); (32.7 + 42) / 7 = 10.67 weeks is 75 days, four days off. For CRL = 50 mm, the linear shortcut returns 92 days (13w1d); Robinson-Fleming returns 82 days (11w5d). The shortcut is wrong by 10 days at the upper end of its supposed range.
The implementation memoizes by Math.round(crl * 10) (0.1 mm bucket) with a 256-entry LRU cache, because the slider ticks at 0.1 mm and re-typing a value re-runs the calculation. Cache hits cost a Map lookup; cold computes cost one Math.sqrt. Either way it returns in microseconds, but the cache keeps the input slider feeling instant under continuous drag.
The Leap-Day Trap: Why Every Date Is a UTC-Day Integer
A pregnancy spans 280 days. That window straddles a DST transition in most of the world and sometimes a leap day. Calculators that store dates as new Date(...) and add 280 by setting setDate(d.getDate() + 280) quietly produce off-by-one errors when crossing DST boundaries in negative-UTC time zones, and silently coerce 2025-02-29 into 2025-03-01 instead of rejecting it.
The fix is to never use the local-time Date API for arithmetic. Every date in this tool is reduced to an integer day count since 1970-01-01 UTC, manipulated as plain integers, and rendered back through Intl.DateTimeFormat with timeZone: "UTC":
export function isoToUtcDay(iso: string): number | null {
const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(iso);
if (!m) return null;
const y = +m[1], mo = +m[2], d = +m[3];
const ms = Date.UTC(y, mo - 1, d);
const dt = new Date(ms);
if (dt.getUTCFullYear() !== y || dt.getUTCMonth() !== mo - 1 || dt.getUTCDate() !== d) {
return null; // 2025-02-29 round-trips to 2025-03-01, so reject
}
return Math.floor(ms / 86_400_000);
}
The round-trip check is the load-bearing line. Date.UTC(2025, 1, 29) happily returns the timestamp for 2025-03-01; the second Date instance reveals the silent rollover, and the parser returns null. The rest of the codebase — addDays, diffDays, gestational-age math, EDD adoption — is pure integer addition and subtraction on these UTC-day values. No DST. No leap-day coercion. No off-by-one when a scan crosses 2028-02-29.
Cycle Length Is a 14-Day Offset, Not a Multiplier
Naegele's Rule assumes a 28-day cycle and ovulation on day 14. A 32-day cycle ovulates around day 18, so the LMP-derived EDD should shift later by 4 days; a 25-day cycle shifts EDD earlier by 3 days. The arithmetic is a single addend, not a percentage:
EDD = LMP + 280 + (cycle_length − 28)
Cycle length is allowed in the range 21 – 45. Outside that range the input is rejected rather than extrapolated, because cycle lengths beyond 45 days usually indicate anovulation and the LMP date itself is no longer a reliable conception proxy. The cycle adjustment applies symmetrically to the LMP-vs-US discordance comparison: the GA at scan derived from LMP includes the cycle offset, so a 32-day-cycle user with an early-dating scan is judged against a corrected LMP-GA, not the naive 28-day assumption.
Try It
Open the Pregnancy Due Date Calculator.
- Ultrasound mode: LMP
2026-01-01, scan date2026-03-01, ultrasound GA10w0d. Result: LMP-EDD2026-10-08, US-EDD2026-09-27, discordance 11 days, threshold 7 days (ultrasound GA 9w0d – 13w6d), redate to ultrasound. - Ultrasound mode, CRL submode: scan date
2026-03-01, CRL32.7 mm. The CRL converts to 71 days (10w1d) via Robinson-Fleming with the 1.037 correction. Try CRL50 mm— you get 11w5d, not the 13w1d that(CRL + 42) / 7would produce. - LMP mode: LMP
2026-01-01, cycle length32. EDD shifts from2026-10-08to2026-10-12(+4 days). - Leap-day rejection: type
2025-02-29into any date field. The input is rejected withINVALID_DATE, not silently coerced to March 1. - IVF mode: transfer date
2026-02-01, embryo ageDay 5 blastocyst. EDD = transfer + (280 − 14 − 5) =2026-10-20. The 14-day offset is the conventional "GA = 2 weeks before conception" convention; the embryo age subtracts the days already grown in vitro.
Dating decisions are a clinician's call. The arithmetic is the tool's.