{
  "id": "due-date",
  "version": "b806dfad8a55",
  "status": "published",
  "name": "Due Date Calculator",
  "question": "When is my due date?",
  "summary": "Estimates a pregnancy due date: 280 days after the first day of the last period (adjusted for cycle length), 266 days after conception, or from an ultrasound, with how far along the pregnancy is.",
  "category": "health",
  "subcategory": "pregnancy",
  "url": "https://www.acalculator.org/health/due-date-calculator",
  "markdown": "https://www.acalculator.org/health/due-date-calculator.md",
  "kind": "function",
  "method": "Due date = start + 280 days, where the start is the first day of the last period + (cycle length − 28) days, the conception date − 14 days, or the ultrasound date − the gestational age it gave.",
  "assumptions": [
    "A pregnancy is counted from the first day of the last period and lasts 280 days (40 weeks) to the due date (ACOG).",
    "Ovulation and conception happen 14 days before the next period would start, so a cycle longer or shorter than 28 days moves the dates by the difference.",
    "Trimesters: first to 13 weeks 6 days, second to 27 weeks 6 days, third after. Full term is 39 weeks 0 days to 40 weeks 6 days.",
    "How far along is left out before the start or more than 44 weeks after it, and a note says to check the dates.",
    "An estimate, not medical advice: a first-trimester ultrasound is the most accurate way to date a pregnancy."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "method": {
        "title": "Based on",
        "description": "What you know: the first day of your last period, the conception date, an ultrasound, or the due date.",
        "type": "string",
        "enum": [
          "lmp",
          "conception",
          "ultrasound"
        ]
      },
      "lmp": {
        "title": "First day of your last period",
        "description": "The first day of your last menstrual period.",
        "type": "string",
        "format": "date"
      },
      "cycle": {
        "title": "Cycle length (days)",
        "description": "Days from the first day of one period to the first day of the next. 28 if you are not sure.",
        "type": "integer",
        "minimum": 21,
        "maximum": 45
      },
      "conception": {
        "title": "Date of conception",
        "description": "The day you conceived.",
        "type": "string",
        "format": "date"
      },
      "scan": {
        "title": "Ultrasound date",
        "description": "The day of the ultrasound scan.",
        "type": "string",
        "format": "date"
      },
      "scanWeeks": {
        "title": "Weeks at the scan",
        "description": "The gestational age the scan gave: whole weeks.",
        "type": "integer",
        "minimum": 4,
        "maximum": 42
      },
      "scanDays": {
        "title": "And days",
        "description": "The gestational age the scan gave: days past the whole weeks, 0 to 6.",
        "type": "integer",
        "minimum": 0,
        "maximum": 6
      },
      "on": {
        "title": "Work out on",
        "description": "The date to work out how far along the pregnancy is. Today, unless you change it.",
        "type": "string",
        "format": "date"
      }
    }
  },
  "outputs": {
    "due": {
      "label": "Estimated due date",
      "description": "The estimated due date: 280 days (40 weeks) after the start of the pregnancy count.",
      "format": "date-long"
    },
    "ga": {
      "label": "How far along",
      "description": "Weeks and days of pregnancy on the work-out date, counted from the start.",
      "format": "duration"
    },
    "trimester": {
      "label": "Trimester",
      "description": "The trimester on the work-out date.",
      "format": "text"
    },
    "note": {
      "label": "Note",
      "description": "A note when the work-out date is before the start of the pregnancy count or more than 44 weeks after it.",
      "format": "text"
    },
    "daysLeft": {
      "label": "Days until the due date",
      "description": "Days from the work-out date to the due date.",
      "format": "integer"
    },
    "conception": {
      "label": "Likely conception date",
      "description": "About 14 days after the start of the pregnancy count, or the conception date you gave.",
      "format": "date"
    },
    "fullTermFrom": {
      "label": "Full term from",
      "description": "The start of full term: 39 weeks 0 days (ACOG).",
      "format": "date"
    },
    "fullTermTo": {
      "label": "Full term to",
      "description": "The end of full term: 40 weeks 6 days (ACOG).",
      "format": "date"
    },
    "start": {
      "label": "Pregnancy counted from",
      "description": "Day 0 of the pregnancy count: the first day of the last period, adjusted for cycle length.",
      "format": "date"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "method": "lmp",
      "lmp": "2026-08-04",
      "cycle": 28,
      "conception": "2026-08-18",
      "scan": "2026-09-22",
      "scanWeeks": 12,
      "scanDays": 0,
      "on": "2026-09-29"
    },
    "outputs": {
      "due": "2027-05-11",
      "ga": {
        "weeks": 8,
        "days": 0
      },
      "trimester": "First trimester",
      "daysLeft": 224,
      "conception": "2026-08-18",
      "fullTermFrom": "2027-05-04",
      "fullTermTo": "2027-05-17",
      "start": "2026-08-04"
    },
    "text": "Your estimated due date is Tuesday, May 11, 2027."
  },
  "examples": [
    {
      "given": {
        "method": "lmp",
        "lmp": "2026-01-01",
        "cycle": 28,
        "on": "2026-03-15"
      },
      "expect": {
        "due": "2026-10-08",
        "ga": {
          "weeks": 10,
          "days": 3
        },
        "trimester": "First trimester",
        "daysLeft": 207,
        "conception": "2026-01-15",
        "fullTermFrom": "2026-10-01",
        "fullTermTo": "2026-10-14"
      },
      "source": "ACOG Committee Opinion 700 (LMP + 280 days); ACOG CO 579 (full term); hand calculation in content.mdx"
    },
    {
      "given": {
        "method": "lmp",
        "lmp": "2027-12-01",
        "cycle": 35,
        "on": "2027-12-01"
      },
      "expect": {
        "start": "2027-12-08",
        "due": "2028-09-13",
        "conception": "2027-12-22"
      },
      "source": "ACOG CO 700 with the cycle-length adjustment in content.mdx; hand calculation in content.mdx"
    },
    {
      "given": {
        "method": "conception",
        "conception": "2026-06-10",
        "on": "2026-09-27"
      },
      "expect": {
        "start": "2026-05-27",
        "due": "2027-03-03",
        "ga": {
          "weeks": 17,
          "days": 4
        },
        "trimester": "Second trimester"
      },
      "source": "ACOG CO 700 (280 days from the LMP, conception on day 14, so 266 days from conception); hand calculation in content.mdx"
    },
    {
      "given": {
        "method": "ultrasound",
        "scan": "2026-08-20",
        "scanWeeks": 12,
        "scanDays": 3,
        "on": "2026-08-20"
      },
      "expect": {
        "start": "2026-05-25",
        "due": "2027-03-01",
        "ga": {
          "weeks": 12,
          "days": 3
        },
        "daysLeft": 193
      },
      "source": "ACOG CO 700 (dating by ultrasound); hand calculation in content.mdx"
    }
  ],
  "sources": [
    "American College of Obstetricians and Gynecologists. Committee Opinion No. 700: Methods for Estimating the Due Date. Obstet Gynecol. 2017;129(5):e150-e154. https://www.acog.org/clinical/clinical-guidance/committee-opinion/articles/2017/05/methods-for-estimating-the-due-date",
    "American College of Obstetricians and Gynecologists. Committee Opinion No. 579: Definition of Term Pregnancy. Obstet Gynecol. 2013;122(5):1139-1140. https://www.acog.org/clinical/clinical-guidance/committee-opinion/articles/2013/11/definition-of-term-pregnancy",
    "Bull JR, Rowland SP, Scherwitzl EB, Scherwitzl R, Danielsson KG, Harper J. Real-world menstrual cycle characteristics of more than 600,000 menstrual cycles. NPJ Digit Med. 2019;2:83. https://pmc.ncbi.nlm.nih.gov/articles/PMC6710244/"
  ],
  "related": [
    "pregnancy",
    "ovulation"
  ],
  "changelog": [
    {
      "date": "2026-09-28",
      "note": "The date boxes are labelled Date of conception and Your due date, apart from the Based on choices."
    },
    {
      "date": "2026-09-29",
      "note": "A note says to check the dates when the date is before the pregnancy count or 44 weeks past it (user test 2026-09-29)."
    }
  ]
}
