NTP Offset & Clock Drift Calculator
Pure frontend: linear, order-of-magnitude estimates. Your inputs stay in the browser; this page never reads your system clock or contacts an NTP service.
How to use it
Two calculations live in one tool. Choose Forward: enter ppm and time without sync to get accumulated error plus daily and monthly drift. Choose Backwards: enter the offset you can tolerate and get the longest holdover and a suggested sync interval with jitter headroom.
Why drift is worth calculating
A machine does not read the current time; it counts a hardware oscillator and converts ticks to seconds. Manufacturing tolerance and temperature shift the frequency, and the relative error is expressed in ppm. At 100 ppm the clock diverges by 100 microseconds per second, 8.64 seconds per day. Two machines drifting in opposite directions can end up a dozen or more seconds apart after a single day.
Time errors bite in three places. Certificates have validity windows, so a client outside the window fails the handshake with certificate is not yet valid. Kerberos rejects a client more than five minutes from the KDC. Monitoring and databases rely on timestamps: Prometheus rate() and increase() over a backward jump produce artifacts, and systems such as etcd or Cassandra depend on time for ordering.
From ppm to sync interval
The linear model has one assumption: the drift rate stays roughly constant over the interval. Accumulated error = ppm × seconds ÷ 1,000,000. Reversed: maximum holdover = allowed error ÷ drift rate. Those two expressions are enough for capacity planning.
Do not set the sync interval at the mathematical limit. Subtract jitter and the uncertainty of a single sync from your tolerance, then give the remainder to drift. If the tolerance is 100 ms and you reserve 20 ms for jitter, only 80 ms is available for drift; compute from that and round down. chrony normally adapts its poll between 64 and 1024 seconds according to network quality, and leaving it alone is usually better than pinning a value.
Troubleshooting order
Start with the master switch: in timedatectl, check System clock synchronized and NTP service. inactive means no daemon is running. Note that chrony and systemd-timesyncd cannot both manage the clock; two daemons fighting over it is a common reason a correct-looking configuration has no effect.
Then check quality with chronyc tracking for Stratum, System time and Frequency, and chronyc sources -v for the source markers: * is the current best source, ? unreachable, ~ too jittery. If the best source keeps changing, fix the link or source quality rather than restarting the service. Consider makestep last: step only when the offset already affects users and you trust the source. Frequent steps disturb transaction ordering and log sequence.
Five failures that look unrelated
The first is certificate is not yet valid, which is usually a slow local clock rather than a bad certificate. The second is Kerberos Clock skew too great, often on old machines whose RTC battery died and whose clock reset at power loss. The third is scrambled log ordering: the application stamps with host A, the collector with host B and storage with host C, so one request's logs land in the wrong window. Unify timezones first; remember a timezone changes display only, not drift.
The fourth is a sawtooth on monitoring graphs, caused by rate() and increase() over jumping timestamps; a for: 5m pending timer is also reset repeatedly. The fifth is consistency trouble in distributed databases, the hardest to reconstruct precisely because the logs themselves cannot be trusted.
Why virtual machines drift faster
A physical crystal typically sits in the 10 to 100 ppm range. Virtual machines can be an order of magnitude worse: the guest sees time from the host, and while a vCPU is descheduled the guest's clock stalls, then catches up imperfectly. Heavy load and high steal time make it worse. Containers share the host kernel clock and should not discipline time themselves; fix it on the host.
That changes how you use this tool. On metal, 20 ppm may be a fair planning number. On a VM, take the measured Frequency from chronyc tracking, sample it several times and plan against the worst. Never size holdover from a nominal crystal spec on a virtual machine. Temperature matters too: a machine near a hot aisle can be several degrees warmer than one in a rack corner, adding measurable frequency error.
Step or slew
The kernel offers two knobs: change the frequency, or change the current value. Slewing is gradual and creates no timestamp jumps but converges slowly for large offsets. Stepping converges instantly but can move time backwards, duplicate timestamps and upset timers. chronyd does not step by default; the System time line in chronyc tracking is the gap between system time and chronyd's estimate of true time. makestep 1.0 3 is the compromise: step during the first three updates when the offset exceeds a second, then slew only. Use this calculator's daily drift figure to decide whether that threshold makes sense for you.
One last boundary: this is linear arithmetic, not a phase-locked loop, not a temperature model and not a VM pause model. It answers "could this magnitude break my budget", not "how far off is my machine right now". For the latter, use chronyc.
Read Linux time sync and chrony troubleshooting for a full configuration template and five real drift incidents. For monitoring symptoms of clock skew, see Prometheus no-data troubleshooting. Field definitions come from the chronyc manual.