How is a due date calculated? Pregnancy calculator accuracy

Blog

9 min read

A due date calculator counts 280 days, or 40 weeks, from the first day of the last menstrual period, the convention ACOG describes, or works from another starting point: the conception date, an ultrasound result or an IVF transfer. Every one of these gives an estimate: only about 1 in 20 women give birth on their due date (ACOG), and even the most accurate way to date a pregnancy, a first-trimester ultrasound, is accurate to about ±5 to 7 days. If you are putting a calculator on your site, here is how each method works, how our plugin applies it, how far each result can be trusted, and what to tell your visitors.

How is a due date calculated from the last period?

“By convention, the EDD is 280 days after the first day of the LMP,” says ACOG’s Committee Opinion on methods for estimating the due date (EDD is the estimated due date, LMP the last menstrual period). ACOG lists the convention’s limits in the same place: it assumes a regular 28-day cycle with ovulation on the 14th day after the cycle begins, so it does not account for a misremembered period date, cycles of other lengths or variation in when ovulation happens. It also notes that only about half of women have been reported to recall their last period accurately.

Naegele’s rule is the calendar shortcut for the same count: add seven days to the first day of the last period, subtract three months and add a year (Cleveland Clinic). It lands close to 280 days but not always on it: depending on the months, our arithmetic puts it zero to three days later. For a last period on May 1, 2027, counting 280 days gives February 5, 2028, while the shortcut gives February 8, 2028.

Either way, the count includes two weeks before conception. ACOG’s patient FAQ explains that pregnancy is assumed to start two weeks after the first day of the last period, so “an extra 2 weeks is counted at the beginning of your pregnancy when you are not actually pregnant” (ACOG).

How does cycle length change the due date?

The 280-day rule fits a 28-day cycle. When cycles are longer or shorter, most of the difference comes from when ovulation happens (Bull and colleagues, 2019). The NHS due date calculator asks you to adjust the cycle length if yours is shorter or longer than 28 days.

Our plugin’s Last Period method makes that adjustment with its own formula: estimated ovulation = first day of the last period + (cycle length − 14 days), and due date = estimated ovulation + 266 days. For a 28-day cycle that is exactly 280 days after the period; a 35-day cycle moves the due date 7 days later, and a 24-day cycle 4 days earlier. The cycle length field accepts 20 to 42 days. The formula follows ACOG’s description that “Ovulation typically happens about 14 days before your period starts” (ACOG), but the formula itself is the plugin’s method, not a rule set by ACOG or the NHS. The weeks shown count from 280 days before the adjusted due date, so weeks and due date always agree.

The adjusted date is still an estimate: in most women, ovulation happens around 10 to 16 days before the next period, not exactly 14 (NHS).

How is a due date calculated from conception?

Counted from conception, a pregnancy lasts about 38 weeks, or 266 days (Cleveland Clinic); in the 40th week of pregnancy, “it has been 38 weeks since conception” (MedlinePlus). The plugin’s Conception method adds 266 days to the date the visitor enters. The weak point is the input: as MedlinePlus puts it, “it’s impossible to know exactly when conception occurs”, which is why gestational age is counted from the last period.

Real pregnancies also vary around any convention. In a study of 125 natural conceptions in which ovulation was identified with urine hormone tests, the median time from ovulation to birth was 268 days, and lengths spanned 37 days even after six preterm births were excluded (Jukic and colleagues, 2013).

How accurate is dating by ultrasound?

ACOG calls ultrasound measurement of the embryo or fetus in the first trimester, up to 13 weeks 6 days, “the most accurate method to establish or confirm gestational age” (ACOG). Up to that point it is accurate to about ±5 to 7 days. Later scans are less precise: about 7 to 10 days between 14 weeks 0 days and 21 weeks 6 days, ±10 to 14 days between 22 weeks 0 days and 27 weeks 6 days, and ±21 to 30 days from 28 weeks. In the UK, the NHS notes that the 12-week scan “can more accurately estimate how many weeks pregnant you are” (NHS).

ACOG also sets how large a gap between a scan and the period-based date justifies changing the due date to match the scan: before 9 weeks, a gap of more than 5 days is an appropriate reason; before 14 weeks, a gap of more than 7 days should lead to the change; and the margins widen from 16 weeks. It also says later changes to the due date “should be reserved for rare circumstances”. These are decisions for the clinician, not for a calculator.

The plugin’s Ultrasound method takes the scan date and the gestational age measured at that scan, in weeks and days, as given in the scan report, and counts forward: due date = scan date − gestational age at the scan + 280 days. It does not interpret scan measurements itself.

How is an IVF due date calculated?

For a pregnancy from IVF, ACOG says the due date should be assigned from the age of the embryo and the date of transfer: 261 days after transferring a day-5 embryo, and 263 days after a day-3 embryo (ACOG). Cleveland Clinic gives the same figures. Both are 266 days minus the embryo’s age in days. The plugin’s IVF Transfer method asks for the transfer date and Day 3 Embryo or Day 5 Embryo, and adds 263 or 261 days.

Which dating methods does the calculator offer?

MethodThe visitor entersDue date in the pluginWhen it fits
Last PeriodFirst day of the last period and average cycle length (20 to 42 days)Period + (cycle length − 14) + 266 days, which is period + 280 for a 28-day cycleThe first day of the last period is known; ACOG calls it the traditional first step
ConceptionDate of conceptionConception + 266 daysThe conception date is known, which is rare
UltrasoundScan date and gestational age at the scanScan date − gestational age + 280 daysA dating scan has been done; first-trimester scans are the most accurate
IVF TransferTransfer date and day-3 or day-5 embryoTransfer + 263 days (day 3) or + 261 days (day 5)IVF pregnancies, as ACOG advises
Due DateA due date the visitor already hasUsed as given; weeks count from 280 days before itThe clinician has already set a due date

The free WP Pregnancy & Ovulation Calculator has only the Due Date and Last Period methods; Conception, Ultrasound and IVF Transfer are in PRO.

A quick way to check any calculator before you embed it: with the formulas above, each of these inputs gives a due date of October 11, 2027.

  • Last period on January 4, 2027, with a 28-day cycle
  • Conception on January 18, 2027
  • Day-3 embryo transferred on January 21, 2027
  • Day-5 embryo transferred on January 23, 2027
  • Scan on March 1, 2027 showing 8 weeks 0 days

If a tool returns other dates here, it counts from conception, a transfer or a scan differently. To test how it handles cycle length, enter the same period with a 32-day cycle: our formula gives October 15, 2027, while a tool that ignores cycle length stays on October 11.

How accurate is an ovulation estimate?

Ovulation calculators use the same calendar estimate. Ours places ovulation 14 days before the next predicted period (first day of the cycle + cycle length − 14 days), highlights a window from 5 days before that day to 2 days after it, and suggests a pregnancy test the day after the predicted period, for six cycles.

Medical sources describe a fertile window of about six days, ending around ovulation (Wilcox and colleagues, 1995; ACOG), with ovulation around 10 to 16 days before the next period in most women (NHS). Real cycles vary: in a large set of app-recorded cycles, only 13% were 28 days long and the time from ovulation to the next period averaged 12.4 days (Bull and colleagues, 2019), and in another study the fertile window fell entirely within days 10 to 17 for only about 30% of women (Wilcox and colleagues, 2000). ACOG’s own summary: “There is no foolproof way to calculate your fertile days” (ACOG).

The test date is only as good as the predicted period; the NHS says most pregnancy tests work from the first day of a missed period (NHS). Our guide to adding an ovulation calculator to WordPress compares the plugin’s highlighted window with the medical fertile window in detail.

Why are most babies not born on their due date?

“Only about 1 in 20 women give birth on their due dates,” ACOG says, and the date is still useful: it sets the gestational age for tracking growth and the timeline for tests (ACOG). The NHS describes a normal pregnancy as lasting from 37 to 42 weeks from the first day of the last period (NHS). ACOG’s definition of term pregnancy puts early term at 37 weeks 0 days to 38 weeks 6 days, full term at 39 weeks 0 days to 40 weeks 6 days, late term at 41 weeks 0 days to 41 weeks 6 days, and postterm at 42 weeks 0 days and beyond. On your site, present the due date as a reference point, not a promise.

Which trimester boundaries does the calculator use?

Sources draw the trimester lines slightly differently, so we use one: ACOG’s. The first trimester runs from the first day of the last period to 13 weeks 6 days, the second from 14 weeks 0 days to 27 weeks 6 days, and the third from 28 weeks 0 days (ACOG). The plugin’s trimester bar and date ranges use the same boundaries, with the third trimester ending at the due date. If your articles follow another scheme, such as the one on the Office on Women’s Health site, say on the calculator page which scheme it uses.

What should your site tell visitors?

Like any due date calculator, ours gives an estimate; it does not replace an examination or advice from a doctor or midwife. Say so on the page, and ask visitors to confirm their due date with their clinician. The plugin already words its results that way:

  • Under pregnancy results: “* the results of this calculator are estimations only”.
  • In the default results email: “Please note: these dates are estimates and may vary. For medical advice, contact your healthcare provider.”
  • In the default PDF footer: “This result is approximate and may vary based on your individual circumstances.”

Keep that wording, or a version your clinical reviewer approves, and have a qualified clinician review the page and the content around it. Describe the method plainly as standard dating rules, with a link to ACOG or the NHS, rather than with claims of clinical validation.

Run a current version, too. PRO 1.1.5 (October 21, 2026) fixed the gestational age, due date, conception date and trimester calculations, and the free 1.2.3, released the same day, made the matching fixes for its two methods; older versions show different results for some methods.

To see how the results screen presents these estimates, try the pregnancy calculator demo. Our pregnancy calculator plugin for WordPress applies the rules described here, and our comparison of pregnancy and ovulation calculator plugins shows how other plugins describe theirs.

All posts