Fertility Window Calculator Formula

Understand the math behind the fertility window calculator. Each variable explained with a worked example.

Formulas Used

Fertile Window Opens (Day)

fertile_start_day = ovulation_day - 5

Peak Fertility (Day)

peak_day = ovulation_day - 1

Ovulation Day

ovulation_day_display = ovulation_day

Fertile Window Length

fertile_window_length = 6

Days Until Fertile Window

days_until_fertile = max(ovulation_day - 5 - days_since_period, 0)

Variables

VariableDescriptionDefault
cycle_lengthAverage Cycle Length(days)28
days_since_periodDays Since Last Period Started(days)8
ovulation_dayDerived value= cycle_length - 14calculated

How It Works

Fertility Window

The fertile window is the 6-day period ending on the day of ovulation.

Ovulation Day = Cycle Length - 14 Fertile Window = Ovulation Day - 5 to Ovulation Day

Conception Probability by Day

| Day Relative to Ovulation | Probability | |---|---| | -5 | ~5% | | -4 | ~10% | | -3 | ~15% | | -2 | ~25% | | -1 (Peak) | ~30% | | 0 (Ovulation) | ~12% |

Worked Example

A 28-day cycle, currently on day 8.

cycle_length = 28days_since_period = 8
  1. 01Ovulation = Day 14
  2. 02Fertile window = Day 9 to Day 14
  3. 03Peak fertility = Day 13
  4. 04Days until fertile window = 9 - 8 = 1 day

Ready to run the numbers?

Open Fertility Window Calculator