Certificate Expiry Calculator

Work out TLS certificate renewal dates and how many renewals a year a given validity period and lead time require.

90 for Let's Encrypt, 398 was the public CA maximum.
Renewals per certificate per year 6.09
renewals per year = 365.25 / (validity − lead time)
Renew every N days 60
renewals per year = 365.25 / (validity − lead time)
Renewals across your whole fleet per year 73
renewals per year = 365.25 / (validity − lead time)
Hours per year if renewed by hand 30.4
Lead time as a share of validity 33.3 %
Lead-time assessment Comfortable — roughly a third of the validity period is left as buffer, which absorbs a failed renewal and a weekend.
Automation At more than 20 renewals a year, manual renewal is a standing outage risk. ACME clients such as certbot or acme.sh automate this entirely and are the normal answer.

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Certificate Expiry Calculator does

Use this certificate expiry calculator to work out TLS certificate renewal dates and how many renewals a year a given validity period and lead time require. Fill in all 4 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for setting a renewal lead time for a certificate fleet. If you want to cross-check the result, there is another certificate expiry calculator on FreeToolStation.org.

How to use it

  1. Enter the certificate validity period in days.
  2. Enter how many days before expiry you want to renew — aim for about a third of the validity.
  3. Enter how many certificates you manage and how long a manual renewal takes.
  4. Read the renewal interval and the annual workload, then check the lead-time assessment.

How it works

Public TLS certificate lifetimes have been shortening steadily. The CA/Browser Forum maximum fell to 398 days in September 2020, and Let's Encrypt has issued 90-day certificates since it launched, specifically to force automation — a 90-day certificate cannot realistically be renewed by hand at scale, which was the point. The direction of travel is towards shorter still, so any process that depends on a person remembering is on borrowed time.

Renewal frequency is driven by the gap between validity and lead time, not by validity alone. A 90-day certificate renewed 30 days early is renewed every 60 days, which is about 6.1 times a year rather than 4.1. Shortening the lead time reduces the renewal count but eats the buffer you have to recover from a failure, and the buffer is what the lead time is for.

A third of the validity period is a reasonable buffer. It survives a failed renewal, a weekend, and someone being on leave — which is the realistic failure mode, since certificate expiry outages are almost never caused by the cryptography and almost always by a renewal that silently failed and nobody checked. Let's Encrypt's own clients default to renewing at 30 days remaining on a 90-day certificate, which is exactly that third.

The honest conclusion for most fleets is automation rather than a better spreadsheet. ACME clients renew unattended and can reload the server afterwards, which removes the human from the loop entirely. Where automation is genuinely impossible — an appliance with no ACME support, a certificate pinned into a mobile app — the compensating control is monitoring that alerts on days remaining, independently of whatever is supposed to be doing the renewing.

When to use it

  • Setting a renewal lead time for a certificate fleet.
  • Making the case for ACME automation with an hours-per-year figure.
  • Planning a renewal calendar for appliances that cannot automate.
  • Checking whether a short lead time leaves enough recovery buffer.

Common mistakes to avoid

  • Calculating renewals from the validity period alone and forgetting the lead time, which understates the frequency.
  • Setting a lead time of a few days. One failed renewal over a weekend then becomes an outage.
  • Relying on the renewal process to tell you it failed. Monitor days-remaining separately, from outside the renewal system.

Frequently asked questions

How often do I need to renew a 90-day certificate?

Roughly every 60 days if you renew 30 days before expiry, which works out to about 6.1 renewals a year rather than the 4.1 the validity period alone would suggest.

What lead time should I use?

About a third of the validity period — 30 days on a 90-day certificate. That survives a failed renewal attempt, a weekend and someone being away, which covers the realistic failure modes.

Why are certificate lifetimes getting shorter?

Shorter lifetimes limit the damage from a key compromise or a mis-issued certificate, because revocation checking has never worked reliably in practice. The trade-off is that renewal has to be automated, which is itself considered a security improvement.

Related tools

See all security & privacy tools →