How period prediction works: cycle length, averages and the fertile window
How a period date is predicted from your own history, what cycle length means, why one missed log can throw it off, and how the fertile window is estimated.
Open the Period tracker Free, in your browser, nothing uploaded.
A period prediction is an average of your own dates, not a reading of your body. This article explains that arithmetic: how cycle length is counted, why an average of recent cycles is used, how the fertile window is placed, and where the method goes wrong. The period tracker does exactly this sum, on your device. It is general health information, not medical advice, and not a method of contraception. For a closer look at fertile days, use the ovulation calendar; if you become pregnant, the due date takes over from the first day of your last period.
What it is
Cycle length is the number of days from the first day of one period to the first day of the next. The NHS and the American College of Obstetricians and Gynecologists both count it this way. An average cycle is about 28 days, but cycles anywhere from about 21 to 35 days are common, and many people vary by a few days from month to month.
The prediction. Given a list of start dates, the tracker:
- Works out each cycle length between one start and the next.
- Averages the last 6 cycles (or all of them, if there are fewer). Recent cycles let the average follow slow changes.
- Adds the rounded average to the last start date to get the next period, then adds it again for the two after that.
- Uses the average length of your logged periods (rounded) to mark how long each predicted period lasts.
Next start = last start + average cycle
The fertile window. Ovulation usually happens about 14 days before the next period starts. That part of the cycle (the luteal phase) varies less than the part before ovulation, so counting back works better than counting forward. Sperm can survive several days, so the fertile window is placed from 5 days before the estimated ovulation day to the day after it.
How rough is it? If your recent cycles differ by more than 7 days from shortest to longest, the tracker says the dates are only rough. With irregular cycles an average hides a wide spread, and the fertile window estimate is even less certain.
How to use it
- Pick the first day of a period, type how many days it lasted (1 to 14) and press Add this period.
- Add past periods as well, at least two, so there is at least one full cycle to measure.
- Read your average cycle and period length, the next three predicted periods and fertile windows, and the cycles the average used.
- Flip through the calendar with the arrows: logged periods, predicted periods and fertile days are marked in different styles.
- To keep your dates, tick Keep my dates on this device (off by default), or download your data as a JSON file and load it later. Clear everything removes it all.
A worked example
Priya logs four periods in 2026:
| Started | Lasted |
|---|---|
| 3 August | 5 days |
| 2 September | 4 days |
| 4 October | 5 days |
| 1 November | 5 days |
- Cycle lengths: 3 Aug to 2 Sep is 30 days, 2 Sep to 4 Oct is 32 days, 4 Oct to 1 Nov is 28 days.
- Average cycle: (30 + 32 + 28) ÷ 3 = 30 days. The spread is 32 − 28 = 4 days, so no “rough” warning.
- Average period: (5 + 4 + 5 + 5) ÷ 4 = 4.75, rounded to 5 days.
- Next period: 1 November + 30 days = 1 December 2026, marked to 5 December. Then 31 December and 30 January 2027.
- Ovulation for the December period: 1 December − 14 days = 17 November, so the fertile window is 12 to 18 November.
One missed log. Had she forgotten to log 4 October, the tracker would see cycles of 30 and 60 days, average 45, and predict mid-December. It would also show the “rough” warning, because 60 − 30 is far more than 7. A sudden very long cycle in your list is often a missing entry.
Checked with the tools
The example was run through the tracker’s own code (src/lib/everyday/period.ts) in Node: analyse() returned cycles of 30, 32 and 28 days, an average of 30, a period length of 4.75, the three predicted starts, ovulation on 17 November and a fertile window of 12 to 18 November. With the October entry removed it returned cycles of 30 and 60, an average of 45, and the irregular flag.
Where it is used
- Planning ahead: travel, exams and long shifts.
- Noticing change: a cycle that suddenly gets much longer or shorter is easy to spot in the list, and worth mentioning to a doctor.
- Trying to conceive: the fertile window shows when chances are highest, though ovulation tests are more precise.
- Medical appointments: doctors often ask for the first day of your last period and your usual cycle length; keep notes alongside in health log.
Common mistakes
- Logging the last day instead of the first. Always log the day bleeding starts.
- Missing a month. As above, one gap doubles a cycle. Add the missing date, even if approximate.
- Using it as contraception. Ovulation can come early or late in any cycle. A calendar estimate cannot prevent pregnancy.
- Trusting it with very irregular cycles. Use the dates as a rough guide only, and talk to a doctor if cycles are often under 21 or over 35 days.
Questions people ask
Does a short period change the prediction? No. Only start dates set the next start; period length only sets how many days are marked.
When should I see a doctor? If periods stop for several months when you are not pregnant, are very heavy or painful, or bleeding happens between periods. This is not medical advice.
Sources
- Cycle length is counted from the first day of one period to the first day of the next, as defined by the NHS and ACOG (nhs.uk, acog.org, checked 2026-12-05). Ovulation is taken as about 14 days before the next period, and the fertile window as the 5 days before ovulation plus the day after (about six days ending the day after ovulation), the same rule used by common fertility guidance. Prediction is fibub's own arithmetic: the average of your last 6 cycles. Estimates only; not contraception advice and not medical advice.
If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.