Pregnancy calculator for OB-GYN and fertility clinic websites

Blog

8 min read

A due date calculator on a clinic website gives people a first estimate before they call, and gives your team a way to hear from those who want an appointment. For an OB-GYN practice, Last Period and Ultrasound are the methods that matter most; fertility and IVF clinics also need IVF Transfer. The setup around the numbers matters too: who gets notified, what the email says, and wording your clinicians have checked.

This guide uses WP Pregnancy & Ovulation Calculator PRO, our pregnancy calculator plugin for WordPress. A calculator will not fill your appointment book by itself; it answers a common first question well and makes the next step easy.

What a due date calculator does on a clinic website

A visitor picks a method, enters a date and, by default, sees the estimate at once: the due date, weeks and days so far, trimester dates, days until birth and a baby-size card for the week. If you allow it, they can also email the result to themselves or download a PDF.

The estimate follows the usual rule: the average pregnancy lasts 280 days, or 40 weeks, from the first day of the last menstrual period, and an ultrasound exam is often used to confirm the due date (ACOG). Only about 1 in 20 women give birth on their due date (ACOG), and the date your clinicians confirm is the one that counts.

It is not a booking system or a patient portal. Visitors have no accounts, and nothing is kept unless they submit the form. Even then, the entry holds their name, contact details and message, the calculator type and the method, not the dates they entered or the result.

Which calculation methods fit an OB-GYN or fertility clinic?

The pregnancy calculator has five methods. You choose the default in the calculator’s Calculation tab, and visitors can switch between all five in the Calculation Method dropdown; no method can be hidden.

MethodThe visitor entersHow the due date is countedFits
Last PeriodFirst day of the last period, average cycle length (20 to 42 days)Last period + (cycle length − 14) + 266 days, so last period + 280 days for a 28-day cycleObstetrics pages, no scan yet
UltrasoundScan date, gestational age at the scan (weeks and days)Scan date − gestational age at the scan + 280 daysPatients after a dating scan
IVF TransferTransfer date, Day 3 or Day 5 embryoTransfer date + 263 days (Day 3) or + 261 days (Day 5)Fertility and IVF clinics
ConceptionConception dateConception date + 266 daysA known conception date
Due DateA due date the patient already hasWeeks and trimesters counted from that dateYour current patients

These are standard dating rules. The NHS asks people whose cycle is not 28 days to adjust the cycle length, and says the 12-week scan estimates how many weeks pregnant someone is more accurately than the calculator (NHS). For IVF, ACOG recommends dating from the embryo’s age and the transfer date; as a 2022 study of births after embryo transfer writes it, gestational age is the days since transfer plus the embryo’s age plus 14 days. That gives 263 days after a day-3 transfer and 261 after a day-5 transfer. The limits of each method are in how pregnancy and ovulation calculators work.

Choosing the default method

Start with Last Period on an obstetrics page, IVF Transfer on an IVF page and Due Date on a page for current patients. The IVF method offers Day 3 and Day 5 embryos only: if your lab transfers on other days, or patients after a frozen transfer may not know which applies, let your clinicians decide what the page tells them. Before you publish, run dates from your own records through each method and check the results against the way your clinic dates pregnancies.

How to turn a result into an appointment request

The calculator is not a booking form, but its user form can bring you a name, email, phone number and message from people who want to hear from you. Each calculator has its own settings:

  • Result type (Settings tab). Independent Result, the default, shows the estimate at once, with the form for people who want it by email or as a PDF. After Form Submission hides the result until the form is filled in: you get details with every result, but some visitors leave, and you collect data from people who only wanted a date. Most clinics should start with Independent Result.
  • Form fields. Firstname, Lastname and Email are on by default; add Phone if you call back and Message if you want people to say what they need. Every field except Email can be optional.
  • Form texts. Under Labels Customization, rename the form heading, description, field labels and buttons so the purpose is plain: “Would you like us to contact you? Tell us the best time to call.” Ask for contact preferences, not medical history.
  • Admin notification. It is on by default and goes to the site admin email; enter the address your front desk reads. An IVF calculator can notify your IVF coordinators instead.
  • Spam. Add Google reCAPTCHA v3 keys in the plugin’s global settings, then switch it on in the calculator’s Integrations tab.

The notification lists the calculator, type, method and the visitor’s details, but not the calculated dates, so whoever calls back should ask.

The email your patient receives

Send to Email delivers an HTML email from your site’s name and admin address, with the results below your text. In the Email/PDF templates tab, rewrite the default subject and body: who you are, how to book, a greeting with {user_firstname}, and the default note that the dates are estimates and that medical advice comes from a healthcare provider. Keep the subject neutral: “Your due date” on a lock screen tells anyone nearby about the pregnancy.

Sending contacts to your CRM

With an active license, each calculator can send new contacts to HubSpot (created or updated, matched by email), Mailchimp or Kit, or to Zapier and Make by webhook. HubSpot and Mailchimp get the name, email and phone, and Kit gets the email, first name and any fields you map; Zapier and Make get every form field plus the calculator name, type and method. None receives the due date or any other result, and each runs once, on the visitor’s first submission. Setup steps are in connecting the calculator to Mailchimp, Kit, HubSpot, Zapier or Make.

Submissions are also listed under Entries in wp-admin, and Export CSV downloads them for any date range. Both need an active license.

Branding the calculator and the PDF

  • Colors: nine color schemes and an Accent Color picker, in the Styling tab.
  • Fonts: headings default to a decorative font, Barrio. Switch to your site’s Google Font or disable it. The base size is 14, 16 or 18 px.
  • Title and form: hide the title if your page has its own heading; use one or two form columns.
  • PDF: in the Email/PDF templates tab, upload your logo (JPG, PNG or GIF, up to 200 KB), replace the header text, which still shows the plugin’s old name, and keep the footer’s note that the result is approximate.

Visitors download the PDF from the calculator; the email carries the results in its body. Replace the plugin’s name in the default email and notification subjects too.

Several calculators for several pages and languages

Create as many calculators as you need, each with its own settings; only one works on a page. For example:

  • an obstetrics page with Last Period as the default, notifying the front desk;
  • an IVF page with IVF Transfer as the default, notifying the IVF team and sending contacts to your CRM;
  • one page per language, with its own labels, baby-size texts, month and day names, messages, date format and week start.

Place each one with its shortcode, such as [upo-calc-pro id="123"], or with the plugin’s WordPress block. Have every translation checked by a clinician who speaks the language.

Privacy: what the calculator collects and where it goes

A name and email next to “IVF Transfer” already say something about a person’s health. Plan this part with whoever handles privacy at your practice:

  • Using the calculator keeps nothing; an entry is created only when someone submits the form.
  • Entries sit in your WordPress database as plain text: name, email, phone, message, calculator type and method.
  • Integrations send contacts to third parties, and reCAPTCHA is a Google service. Cover them in your privacy policy and your agreements with those providers.
  • The consent checkbox is off by default. Turn on Show User agreements, link your privacy policy and terms, and word the message next to it.
  • Collect only what you need, and never use the contacts for advertising.

You are responsible for consent, your privacy policy and the health privacy rules where you practice; this is not legal advice. Our privacy and GDPR guide for pregnancy calculators goes into detail.

Have a clinician review the wording

Everything visitors read can be edited, so review it the way you review any patient information:

  • the 42 weekly baby-size cards, each with an approximate length or weight (IVF has its own texts for weeks 1 to 3);
  • the result labels and the nine validation and success messages;
  • your email, the PDF header and footer, and the text on the page;
  • for an ovulation calculator on a fertility page, the phase texts, which by default call the ovulation day a “High probability of getting pregnant”.

Keep the plugin’s own notes: the result screen says the results are estimations only, and the default email points people to their healthcare provider for medical advice. Then add your own line next to the calculator, for example: “This calculator gives an estimate. It does not replace an examination or advice from your doctor or midwife; we will confirm your due date at your first appointment.”

What to put on the calculator page

  • a heading and one sentence on what the calculator does;
  • which method to choose: “Had a dating scan? Choose Ultrasound and enter the scan date and the weeks and days from your report. Have a due date from us? Choose Due Date.”;
  • what happens after the form: who will contact the visitor, how and when;
  • other ways to book, and who reviewed the page and when.

To see the five methods, the form and the PDF button in place, try the pregnancy calculator demo, and see the plans when you know how many sites need it.

All posts