---
title: Percent, ppm and relative change
heading: How far a 20 ppm crystal clock drifts in a month
eyebrow: A1 · Lesson 7 · Percent and ppm
xp: 40
---

::: hook
A cheap quartz crystal is accurate to 20 parts per million. That sounds perfect, and for one tick it is: an error of 0.002%. But a clock adds up its ticks all month, and 20 millionths of a month is most of a minute. Engineers describe small errors as fractions of the whole (percent for resistors, ppm for crystals and references, ppb for atomic clocks), because a fraction tells you how the error scales with whatever you're measuring.

::: play
- The line shows how far a clock running $p$ ppm fast has drifted after $d$ days.
- Set $p$ to 20 and read the drift per day and per month.
- Halve $p$. What happens to the drift after a year?
:::
:::

```sim plot
view: graph
x: d = 0..365
y: drift = 0..1600 s
slider: p = 1..100 step 1 = 20
plot: p*1e-6*86400*d | label: drift
readout: drift per day = p*1e-6*86400 s | digits: 3
readout: drift per 30 days = p*1e-6*86400*30 s | digits: 3
readout: drift per year = p*1e-6*86400*365 s | digits: 4
```

::: predict
## A clock's crystal runs 20 ppm fast. After 30 days, about how far ahead is it?

- [ ] 0.05 seconds
- [ ] 5 seconds
- [x] 52 seconds
- [ ] 9 minutes

::: reveal
About 52 seconds. Thirty days is $30 \times 86\,400 = 2\,592\,000$ s, and 20 millionths of that is 51.8 s. The error is a fixed fraction, so the drift grows in proportion to the time: about 1.7 s a day, 52 s a month and 10.5 minutes a year.
:::
:::

::: nameit
## Fractions of the whole

**Percent** means per hundred, and **ppm** (parts per million) means per million:

$$1\% = 10^{-2} \qquad 1\text{ ppm} = 10^{-6} \qquad 1\text{ ppb} = 10^{-9} \qquad 1\% = 10\,000\text{ ppm}$$

To use one, multiply it by the quantity it's a fraction of. A 16 MHz crystal specified at ±20 ppm can be off by $16 \times 10^6 \times 20 \times 10^{-6} = 320$ Hz.

**Temperature coefficients** are fractions per degree. A metal-film resistor might be rated 50 ppm/°C, so a 10 kΩ part warmed by 40 °C changes by

$$10\,000\ \Omega \times 50 \times 10^{-6} \times 40 = 20\ \Omega$$

which is 0.2%. Copper wire is much worse, about +3900 ppm/°C (0.39% per degree), which is why a motor winding's resistance climbs noticeably as it heats up.

**Relative change** compares a change to where you started:

$$\text{relative change} = \frac{\text{new} - \text{old}}{\text{old}}$$

Two traps come with it.
- **Up and down aren't symmetric.** Drop a signal by 20% and it's at 0.8 of where it was. Raise that by 20% and you get $0.8 \times 1.2 = 0.96$, still 4% short, because the second 20% is a fraction of a smaller number.
- **Percent isn't the same as percentage points.** If a converter's efficiency goes from 90% to 95%, it went up 5 percentage points. For the same input power, the wasted part went from 10% to 5% of the input: it halved, a 50% drop. Both statements are true, and the second is the one that tells you how much cooler the converter runs.

**Small changes in a product.** When a quantity is built by multiplying others, small relative changes add, and a power multiplies them:

$$\frac{\Delta(ab)}{ab} \approx \frac{\Delta a}{a} + \frac{\Delta b}{b} \qquad \frac{\Delta(a^n)}{a^n} \approx n\,\frac{\Delta a}{a}$$

So if the voltage across a resistor rises 1%, the power $V^2/R$ rises about 2%. The approximation leaves out the product of the two small changes, which is tiny when they're a few percent: $1.01^2 = 1.0201$.
:::

::: example
## A clock chip runs from a 32.768 kHz crystal rated ±20 ppm. How far can the clock drift in a 30-day month?

::: solution
1. **Seconds in a month.**
   $$\begin{aligned} t &= 30 \times 86\,400\ \text{s} \\ &= 2\,592\,000\ \text{s} \end{aligned}$$
2. **Apply the 20 ppm.** Since ppm is a fraction, a clock whose rate is off by 20 ppm keeps time that's off by the same fraction:
   $$\begin{aligned} \Delta t &= 2\,592\,000\ \text{s} \\ &\quad \times 20 \times 10^{-6} \\ &= 51.8\ \text{s} \end{aligned}$$
3. **Put it in context.** That's nearly a minute a month, whatever the crystal's frequency. Clocks that must stay right correct themselves from a network or GPS now and then.

**Answer:** the clock can drift by up to 51.8 s, nearly a minute, in a 30-day month.
:::
:::

::: example
## A 1 kΩ resistor has a 0.1% tolerance and a temperature coefficient of ±25 ppm/°C. It's within tolerance at 25 °C. What range of values can it have anywhere from 0 to 70 °C?

::: solution
1. **Tolerance.** 0.1% of 1000 Ω is ±1 Ω.
2. **Temperature drift.** The farthest the part gets from 25 °C is 45 °C, at 70 °C, so the drift there can be
   $$\begin{aligned} \Delta R &= 1000\ \Omega \times 25 \times 10^{-6} \\ &\quad \times 45 \\ &= 1.125\ \Omega \end{aligned}$$
   either way, since the datasheet doesn't promise a sign.
3. **Add the worst cases.**
   $$\begin{aligned} R &= 1000 \pm (1 + 1.125)\ \Omega \\ &= 1000 \pm 2.125\ \Omega \end{aligned}$$
   so anywhere from 997.9 to 1002.1 Ω, or ±0.21%.
4. **Compare the two.** Over this range, temperature matters as much as the tolerance printed on the part.

**Answer:** the resistor can be anywhere from 997.9 to 1002.1 Ω, or ±0.21%.
:::
:::

::: example
## A heater is rated for 230 V, but the supply sags to 220 V. How much does its power drop?

::: solution
1. **Voltage drop.**
   $$\frac{10}{230} = 4.35\%$$
2. **Quick estimate.** Power goes as $V^2/R$, so by the rule for powers it falls about twice that, 8.7%.
3. **Exact figure.**
   $$\left(\frac{220}{230}\right)^2 = 0.915$$
   a drop of 8.5%.
4. **Why the rule overstates it.** A 4% change isn't quite small, and the part the rule leaves out is
   $$0.0435^2 = 0.19\%$$

**Answer:** the power drops 8.5% (the quick rule says about 8.7%).
:::
:::

::: check
given: p = 5 | 10 | 20 | 30 | 50 | 100; d = 1 | 7 | 30 | 365
answer: p*1e-6*86400*d
tolerance: 1%

## A clock's crystal runs {p} ppm fast. How many seconds ahead is it after {d} days?

::: right
Right. {d} days is $\given{d} \times 86\,400$ seconds, and {p} millionths of that is {answer} s.
:::

::: misses
- [p*1e-6*d] That's the drift in days. Convert the time to seconds first: a day has 86 400 s.
- [p*1e-3*86400*d] ppm is parts per million. Multiply by $10^{-6}$, not $10^{-3}$.
- [p*1e-2*86400*d] That treats {p} ppm as {p} percent. A ppm is $10^{-6}$.
- [any] Not yet. Multiply the time in seconds by $\given{p} \times 10^{-6}$.
:::
:::

::: check
given: f = 8 | 12 | 16 | 25 | 32; p = 10 | 20 | 30 | 50
answer: f*p
tolerance: 0.5%

## A {f} MHz crystal is specified at ±{p} ppm. How many hertz can its frequency be off?

::: right
Right. $\given{f} \times 10^6\ \text{Hz} \times \given{p} \times 10^{-6}$ = {answer} Hz. With the frequency in MHz and the error in ppm, the millions cancel.
:::

::: misses
- [f*p*1e4] That treats ppm as percent. One ppm is a millionth.
- [f*p*1e-6] Write the frequency in hertz first: {f} MHz is $\given{f} \times 10^6$ Hz.
- [any] Not yet. Multiply the frequency in hertz by $\given{p} \times 10^{-6}$.
:::
:::

::: check
given: t = 0.01 | 0.05 | 0.1 | 0.25 | 0.5 | 1
answer: t*1e4
tolerance: 0.5%

## A voltage reference is accurate to ±{t}%. How many ppm is that?

::: right
Right. 1% is 10 000 ppm, so {t}% is {answer} ppm.
:::

::: misses
- [t*1e6] {t}% is $\given{t} \times 10^{-2}$, not $\given{t}$. Multiply by $10^6$ after writing it as a fraction.
- [t*100] One percent is 10 000 ppm.
- [t/1e4] That's the wrong way round. A ppm is smaller than a percent, so there are more of them.
- [any] Not yet. Write {t}% as a fraction, then count millionths.
:::
:::

::: check
given: R = 1 | 4.7 | 10 | 47; tc = 25 | 50 | 100 | 200; dT = 20 | 40 | 60
answer: R*1000*tc*1e-6*dT
tolerance: 1%

## A {R} kΩ resistor has a temperature coefficient of {tc} ppm/°C. By how many ohms does it change when it warms by {dT} °C?

::: right
Right. $\given{R}\ \text{k}\Omega \times \given{tc} \times 10^{-6} \times \given{dT}$ = {answer} Ω.
:::

::: misses
- [R*tc*1e-6*dT] That's the change in kΩ. The question asks for ohms.
- [R*1000*tc*1e-6] That's the change for one degree. Multiply by the {dT} °C rise.
- [R*1000*tc*1e-2*dT] ppm is parts per million, not per hundred.
- [any] Not yet. Multiply the resistance by the coefficient, as a fraction, and by the temperature rise.
:::
:::

::: check
given: p = 10 | 20 | 30 | 40 | 50
answer: 100*(1 - p/100)*(1 + p/100)
tolerance: 0.2%

## A signal drops by {p}%, then rises by {p}%. Where does it end up, as a percent of where it started?

::: right
Right. $(1 - \given{p}/100)(1 + \given{p}/100)$ = {answer}%. The rise is a fraction of the smaller value, so it doesn't make up the drop.
:::

::: misses
- [100] The second {p}% is a fraction of a smaller number, so it adds back less than the first took away.
- [100 - p] Multiply by both factors, $1 - \given{p}/100$ and then $1 + \given{p}/100$.
- [any] Not yet. Each change multiplies the signal by a factor. Multiply the two factors.
:::
:::

::: check
given: e1 = 80 | 85 | 90 | 92; d = 2 | 3 | 4 | 5; let e2 = e1 + d
answer: 100*d/(100 - e1)
tolerance: 0.5%

## A converter's efficiency rises from {e1}% to {e2}%, with the same input power. By what percent does the power it wastes as heat fall?

::: right
Right. The waste falls from $100 - \given{e1}$ to $100 - \given{e2}$ percent of the input, a {answer}% drop.
:::

::: misses
- [d] That's the rise in efficiency, {d} percentage points. The question asks how much the waste fell, relative to what it was.
- [100*d/e1] That's the relative rise in efficiency. Look at the wasted part, $100 - $ efficiency.
- [any] Not yet. Work out the wasted fraction before and after, then the relative change.
:::
:::

::: check
given: a = 0.5 | 1 | 3 | 4
answer: 100*((1 + a/100)^2 - 1)
tolerance: 2%

## The voltage across a resistor rises by {a}%. By what percent does the power $P = V^2/R$ rise?

::: right
Right. Squaring doubles a small relative change: about $2 \times \given{a}$%, or exactly {answer}%.
:::

::: misses
- [a] Power goes as the square of the voltage, so the relative change doubles.
- [a^2] Square the factor $1 + \given{a}/100$, not the percentage.
- [any] Not yet. Square the factor $1 + \given{a}/100$, or use the small-change rule: a square doubles the relative change.
:::
:::

::: explain
## A press release says a power supply's efficiency "went up 5%". Why is that ambiguous, and what would you ask?

::: model
It could mean five percentage points, say from 90% to 95%, or a relative rise of 5%, from 90% to 94.5%. Those are quite different. I'd ask for the efficiency before and after. I'd also want to know what happened to the losses, since going from 90% to 95% halves the wasted power, which is what decides how hot the supply runs.
:::
:::

::: practice

::: check
given: p = 1 | 2 | 5 | 10 | 20 | 50
answer: p*1e-6*86400*365/60
tolerance: 1%

## A clock is off by {p} ppm. How many minutes does it drift in a year of 365 days?

::: misses
- [p*1e-6*86400*365] That's the drift in seconds. Divide by 60 for minutes.
- [p*1e-6*365*24*60*60*60] Divide by 60 to turn seconds into minutes.
- [any] A year is $365 \times 86\,400$ seconds. Multiply by $\given{p} \times 10^{-6}$, then convert to minutes.
:::
:::

::: check
given: p = 500 | 1000 | 2000 | 5000 | 20000
answer: p/1e4
tolerance: 0.5%

## What percent is {p} ppm?

::: misses
- [p/100] One percent is 10 000 ppm, so divide by 10 000.
- [p*1e4] There are 10 000 ppm in each percent, so the percent is the smaller number.
- [any] Divide by 10 000.
:::
:::

::: check
given: f = 10 | 20 | 48 | 100; p = 1 | 2.5 | 5 | 25
answer: f*p
tolerance: 0.5%

## A {f} MHz oscillator is accurate to ±{p} ppm. How many hertz can it be off?

::: misses
- [f*p*1e4] That reads ppm as percent.
- [f*p*1e-6] Put the frequency in hertz first.
- [any] Multiply {f} × 10⁶ Hz by {p} × 10⁻⁶.
:::
:::

::: check
given: R = 2 | 5 | 10 | 20; dT = 30 | 50 | 80
answer: R*3900e-6*dT
tolerance: 1%

## A copper winding measures {R} Ω cold. Copper's resistance rises about 3900 ppm/°C. How many ohms does it gain when it warms by {dT} °C?

::: misses
- [R*3900e-6] That's the change for one degree. Multiply by {dT}.
- [R*(1 + 3900e-6*dT)] That's the new resistance. The question asks how much it gained.
- [any] Multiply the resistance by 3900 × 10⁻⁶ and by the temperature rise.
:::
:::

::: check
given: p = 10 | 20 | 25 | 50
answer: 100*p/(100 - p)
tolerance: 0.5%

## A signal fell by {p}%. By what percent must it rise to get back where it started?

::: misses
- [p] The rise is a fraction of the smaller value, so it has to be a bigger percentage than the fall.
- [any] It's at $1 - \given{p}/100$ of the start. Find the factor that takes that back to 1.
:::
:::

::: check
given: a = 1 | 3; b = 1 | 2 | 4
answer: 100*((1 + a/100)*(1 + b/100) - 1)
tolerance: 2%

## A current rises {a}% and the resistance it flows through rises {b}%. By what percent does the voltage $V = IR$ rise?

::: misses
- [a*b] Small relative changes in a product add. They don't multiply.
- [a - b] Both factors went up, so their changes add.
- [any] Multiply the factors $1 + \given{a}/100$ and $1 + \given{b}/100$, or add the percentages for an estimate.
:::
:::

::: check
given: e1 = 75 | 80 | 88 | 94; d = 1 | 2 | 3; let e2 = e1 + d
answer: 100*d/(100 - e1)
tolerance: 0.5%

## Efficiency goes from {e1}% to {e2}% for the same input power. By what percent does the wasted power fall?

::: misses
- [d] That's the change in percentage points of efficiency.
- [any] The waste is $100 - $ efficiency. Find its relative change.
:::
:::
:::
