---
title: "How big can a resistor divider get before humid air moves it?"
topic: "Humidity leakage"
answer: "Past about 1 MΩ it starts to show. Simulated with wet flux residue across the pads, a 10 MΩ divider reads a 3.00 V cell 2.1% high, as 3.06 V. A 1 MΩ divider reads it as 3.006 V. The leak is the residue, not the board, and a bigger part doesn’t fix it."
url: "https://nearfieldnotes.com/notes/humidity-leakage/"
site: "Near Field Notes"
author: "Michael Walker"
note: 34
family: "Sensing"
published: "2026-11-13"
revised: "2026-11-13"
revision: 1
video: "https://nearfieldnotes.com/videos/humidity-leakage/"
---

Note 34 · [Sensing](https://nearfieldnotes.com/families/sensing/) · Rev 1 · [Watch the video · 2:08](https://nearfieldnotes.com/videos/humidity-leakage/)

Humidity leakage

# How big can a resistor divider get before humid air moves it?

**Short answer:** Past about 1 MΩ it starts to show. Simulated with wet flux residue across the pads, a 10 MΩ divider reads a 3.00 V cell 2.1% high, as 3.06 V. A 1 MΩ divider reads it as 3.006 V. The leak is the residue, not the board, and a bigger part doesn’t fix it.

A film that leaks the same across both resistors leaves an equal divider where it is. An unequal one is pulled toward half the supply.

These numbers are the mild end. Real residue collects at the joints, where it does the most harm.

**Note 34’s opening figure: A divider, dry and humid.** The same cell, read through the same film

![Note 34’s opening figure: A divider, dry and humid](https://nearfieldnotes.com/notes/humidity-leakage/fig-opening.png)

*What the figure shows:* A battery-voltage divider in three steps. A 3 V coin cell feeds a 9 megohm resistor over a 1 megohm resistor, and the microcontroller's ADC reads the point between them and multiplies by ten. On a dry board it reads 3.000 V. In humid air a film of wet flux residue acts as a 343 megohm resistor across each part, the midpoint rises from 0.300 to 0.306 V and the reading becomes 3.063 V, simulated. With the same film across a divider of 900 kilohms over 100 kilohms, the reading is 3.006 V.

The film is flux residue at 99% humidity, drawn as the resistor it makes across each part. Simulated as a uniform film on 0402 pads, from a resistance measured by others. Nothing here was measured on a board. It rests on the humid step.

## A coin cell board that reads its own battery

*44 × 24 mm, 3.00 V*

Take a Bluetooth sensor board that runs for years on a CR2032 coin cell. To know when the cell is dying, its microcontroller measures the cell’s voltage.

Two resistors do the scaling. They sit end to end between the cell and ground, and one ADC pin reads the point between them.

**Fig. 34a: The board, and its divider.**

![Fig. 34a: The board, and its divider](https://nearfieldnotes.com/notes/humidity-leakage/fig-34a.png)

*What the figure shows:* Figure 34a: the 44 by 24 mm board rendered from above. A coin cell under a metal strap fills the left half. On the right are a microcontroller with its crystal and chip antenna, and a small sensor. Below the microcontroller two 0402 resistors sit end to end, marked with a ring. A trace runs from the cell's strap to the first resistor, one from the joint between the two up to a microcontroller pin, and the second resistor ends at a ground via.

The two resistors are 0402 parts, 0.5 mm apart. The board is an example drawn for this page.

**The numbers**

| Part | What it is |
|---|---|
| Coin cell | A CR2032 under a retainer strap, 3.00 V, 225 mAh assumed |
| MCU | A Bluetooth microcontroller with its crystal and chip antenna. One ADC pin reads the divider |
| Divider | 9 MΩ from the cell to the midpoint, 1 MΩ from the midpoint to ground, both 0402, 0.5 mm apart |
| Sensor | A temperature and humidity sensor on the microcontroller’s bus |

As a circuit: 9 MΩ from the cell to the midpoint, and 1 MΩ from the midpoint to ground. The midpoint sits at a tenth of the cell, 0.300 V, and the firmware multiplies by ten.

Nothing else is on the midpoint but the ADC pin. Every path from it to another net is supposed to be one of the two resistors.

**Fig. 34b: The same divider, as a circuit.**

![Fig. 34b: The same divider, as a circuit](https://nearfieldnotes.com/notes/humidity-leakage/fig-34b.png)

*What the figure shows:* Figure 34b: the divider as a circuit. A 3.00 V cell feeds a 9 megohm resistor in series with a 1 megohm resistor to ground. The midpoint between them sits at 0.300 V, a tenth of the cell, and runs to the ADC pin of the microcontroller, which is powered from the same cell.

The divider is across the cell all the time, whether or not the microcontroller is taking a reading.

## Why the resistors get so large

*0.3 µA at 10 MΩ*

The divider draws current every hour of the year. At 100 kΩ in all that is 30 µA, which empties a 225 mAh cell in about 10 months by itself.

At 1 MΩ it takes 11.7% of the cell each year. At 10 MΩ it takes 1.2%. So on a board meant to last years, the divider grows until its current stops mattering.

What grows with it is how little it takes to move the midpoint. Any stray path of a few hundred megohms now counts.

**Fig. 34c: Share of the cell a divider uses in a year.**

![Fig. 34c: Share of the cell a divider uses in a year](https://nearfieldnotes.com/notes/humidity-leakage/fig-34c.png)

*What the figure shows:* Figure 34c: the share of a 225 mAh coin cell that a divider left across it uses in a year, by the divider's total resistance, at 3.0 V. 100 kilohms draws 30 microamps and uses 117%, more than the whole cell. 1 megohm draws 3 microamps and uses 11.7%. 10 megohms draws 0.3 microamps and uses 1.2%.

For a 225 mAh cell held at 3.0 V. The current beside each bar is the divider’s alone.

**The numbers**

The cell held at 3.0 V all year, 225 mAh assumed. Arithmetic, not a simulation.

| Divider | Current | Charge in a year | Share of the cell |
|---|---|---|---|
| 100 kΩ | 30 µA | 262.8 mAh | 116.8% |
| 1 MΩ | 3 µA | 26.3 mAh | 11.7% |
| 10 MΩ | 0.3 µA | 2.6 mAh | 1.2% |

## The board isn’t the leak

*Clean FR-4, over 100 GΩ*

The first suspect is the board itself, taking up water. Jack Ganssle measured that. Across a 1 cm gap of clean, bare FR-4 at 80% humidity he found 20 pA, which is about 165 GΩ.

Put that across the 9 MΩ resistor and the reading moves by 0.005%. With solder mask over the copper he measured under 10 fA, even with the board wet.

The leak is what soldering leaves behind. No-clean flux leaves a ring of weak organic acids around every joint. Dry, they insulate.

**Fig. 34d: The divider’s pads, clean and after soldering.**

![Fig. 34d: The divider’s pads, clean and after soldering](https://nearfieldnotes.com/notes/humidity-leakage/fig-34d.png)

*What the figure shows:* Figure 34d: two rendered close-ups of the divider's two 0402 resistors, seen from above. In the first the board is clean: four gold pads, bright solder joints and green solder mask between them. In the second each joint sits in a glossy amber pool of flux residue that spreads over the pad and onto the solder mask, and the pools of neighboring pads nearly touch.

Rendered. The residue is drawn thicker and more amber than most no-clean flux leaves, so it can be seen.

**Fig. 34e: Residue on a test comb, against humidity.**

![Fig. 34e: Residue on a test comb, against humidity](https://nearfieldnotes.com/notes/humidity-leakage/fig-34e.png)

*What the figure shows:* Figure 34e: the measured resistance of a comb test pattern carrying flux-activator residue, against relative humidity from 60 to 99%, on a log scale. With malic acid it falls from 1,635 megohms at 60% to 21.12 at 80%, 1.58 at 90% and 0.52 at 99%. With adipic acid it stays above 1,205 megohms up to 80%, and falls to 134 at 98% and 45.73 at 99%. Measured by Joshy and others at the Technical University of Denmark, at 25 degrees C with 50 micrograms of acid per square centimeter.

Measured by Joshy and others at DTU on a 13 × 25 mm FR-4 comb, at 25 °C, with 50 µg of acid per cm². Both acids are common flux activators.

**The numbers**

Megohms across the comb at 25, 50 and 75 µg of acid per cm², 25 °C. From Joshy et al. 2019, Tables 1 and 2. The figure draws the 50 µg/cm² columns.

| Humidity | Adipic, 25 | Adipic, 50 | Adipic, 75 | Malic, 25 | Malic, 50 | Malic, 75 |
|---|---|---|---|---|---|---|
| 60% | 5,209 | 3,090 | 2,789 | 2,902 | 1,635 | 602.4 |
| 70% | 4,945 | 2,158 | 1,665 | 2,587 | 303.7 | 39.93 |
| 80% | 2,866 | 1,205 | 922.5 | 2,071 | 21.12 | 3.18 |
| 90% | 504.2 | 494.6 | 449.6 | 781.9 | 1.58 | 0.42 |
| 95% | 209.7 | 263.5 | 293.2 | 151 | 0.65 | 0.32 |
| 98% | 157.3 | 133.7 | 194.9 | 30.83 | 0.55 | 0.32 |
| 99% | 102.8 | 45.73 | 23.79 | 6.62 | 0.52 | 0.28 |

Flux residue

### 1,635 MΩ at 60% humidity, 1.58 MΩ at 90%

**Field marks.** In humid air the acids pull in water and dissolve into it. With malic acid, the comb measures 1,635 MΩ at 60% humidity, 21 MΩ at 80% and 1.58 MΩ at 90%.

**Look-alike.** A leaky board. The laminate gets the blame because the fault follows the weather. The clean board above measured over 100 GΩ in the same air.

**Range.** Each acid starts to dissolve at its own humidity: malic near 80%, adipic near 98%. Adipic acid still holds 1,205 MΩ at 80% and falls to 46 MΩ at 99%. A flux is a blend of acids, and DTU found that a blend starts lower than any one acid in it.

**Habitat.** Around every joint soldered with no-clean flux and not washed. Breath reaches all of it. It leaves the mouth warm and nearly saturated, so it condenses on a cooler board and the surface is wetter than any room.

## The film is a resistor across each part

*343 MΩ each*

To put a number on one divider, spread that wet residue as an even film over the pads and solve for the current in it. At 99% humidity DTU’s comb works out to 939 MΩ for each square of film. A square of film has the same resistance from edge to edge at any size, so a film is counted in squares.

Between the two pads of one 0402 part, the film is worth 2.74 such squares side by side. That makes it a 343 MΩ resistor across the part.

The film is the same across both parts. The voltage is not: 2.69 V sits across the 9 MΩ part and 0.31 V across the 1 MΩ part, so about nine times the current runs in the film under the first.

**Fig. 34f: Current in the film, on the divider’s pads.**

![Fig. 34f: Current in the film, on the divider’s pads](https://nearfieldnotes.com/notes/humidity-leakage/fig-34f.png)

*What the figure shows:* Figure 34f: the simulated current in a uniform film over the divider's four 0402 pads, seen from above, with the 9 megohm part on the left and the 1 megohm part on the right. The pads are the cell's, two of the midpoint and ground's. Current is dense in the film between the cell's pad and the midpoint's, where 2.69 V sits across the gap, and peaks at the pads' facing corners at about 12 nanoamps per millimeter of width. Between the midpoint and ground, with 0.31 V across, it is about a ninth as dense. Away from the pads it fades toward zero.

Simulated, seen from above. A uniform film of 939 MΩ per square covers everything but the four pads, the parts’ undersides included. The scale is logarithmic.

So the circuit gains two resistors. Each real resistor now has 343 MΩ in parallel with it.

`V_mid = V (R_b ∥ R_f)/(R_t ∥ R_f + R_b ∥ R_f)`

where V_mid: voltage at the midpoint (V); V: voltage of the cell (V); R_b: bottom resistor (Ω); R_f: film across one part (Ω); R_t: top resistor (Ω).

343 MΩ hardly changes 1 MΩ. It takes 2.6% off 9 MΩ. The top of the divider gets smaller, the midpoint rises by 6.3 mV to 0.306 V, and a 3.00 V cell reads 3.063 V.

The extra current is nothing: 7 nA more from the cell. What the film costs is accuracy.

**Fig. 34g: The divider, with the film drawn in.**

![Fig. 34g: The divider, with the film drawn in](https://nearfieldnotes.com/notes/humidity-leakage/fig-34g.png)

*What the figure shows:* Figure 34g: the divider's circuit with the film added as two resistors, one of 343 megohms across the 9 megohm part and one of 343 megohms across the 1 megohm part. The midpoint sits at 0.306 V in place of 0.300 V.

The film’s two resistors, from the simulation. A third path, straight from the cell’s pad to ground’s, is fifty times weaker and is left out of the drawing.

**Fig. 34h: Which way the film pulls a 10 MΩ divider.**

![Fig. 34h: Which way the film pulls a 10 MΩ divider](https://nearfieldnotes.com/notes/humidity-leakage/fig-34h.png)

*What the figure shows:* Figure 34h: how far the film moves the midpoint of a 10 megohm divider, against where the midpoint should sit between 0 and 3 V, simulated. A midpoint meant to sit at 0.3 V, the 9 to 1 divider, moves up by 6.3 millivolts. One meant to sit at 1.5 V, with equal resistors, does not move. One meant to sit at 2.7 V moves down by 6.3 millivolts. The curve crosses zero at the middle and is the same shape on both sides.

Simulated at nineteen ratios, all 10 MΩ in total, with the same film on the same 0402 pads.

**The numbers**

10 MΩ in all, 0402 parts, film of 939 MΩ per square, 3.00 V cell.

| Midpoint should be | Divider | It moves by | Error in the reading |
|---|---|---|---|
| 0.15 V | 9.5 MΩ over 500 kΩ | +3.73 mV | +2.48% |
| 0.30 V | 9 MΩ over 1 MΩ | +6.26 mV | +2.09% |
| 0.75 V | 7.5 MΩ over 2.5 MΩ | +8.11 mV | +1.08% |
| 1.50 V | 5 MΩ over 5 MΩ | 0 | 0 |
| 2.25 V | 2.5 MΩ over 7.5 MΩ | −8.11 mV | −0.36% |
| 2.70 V | 1e+03 kΩ over 9 MΩ | −6.26 mV | −0.23% |
| 2.85 V | 500 kΩ over 9.5 MΩ | −3.73 mV | −0.13% |

Uniform film

### Pulled toward the middle

**Field marks.** Two equal resistors across the divider’s halves pull its midpoint toward half the supply. A midpoint meant to sit low rises, by 6.3 mV for 9 to 1. One meant to sit high falls by as much.

**Look-alike.** A divider that doesn’t care. With equal legs the two leaks cancel and the midpoint stays put, so a breath test on a 1 to 1 divider shows nothing.

**Range.** The error in the reading is largest for the most unequal dividers: 2.1% at 9 to 1 and 1.1% at 3 to 1. Real residue is not even. With more of it on one part than the other, an equal divider moves too.

**Habitat.** Battery dividers, where the cell’s voltage has to come down a long way to fit an ADC’s range, and feedback dividers on low-power regulators.

## A bigger part doesn’t fix it

*3.1% to 1.3%*

The usual advice for leakage is distance: use a longer part and the path gets longer. A 1206 has a gap of 1.80 mm between its pads, against 0.48 mm for an 0402.

Its pads are also wider, 1.75 mm against 0.64 mm. The film between them is a longer path and a wider one, and the two nearly cancel.

**Fig. 34i: Five part sizes, the same film.**

![Fig. 34i: Five part sizes, the same film](https://nearfieldnotes.com/notes/humidity-leakage/fig-34i.png)

*What the figure shows:* Figure 34i: five dividers rendered from above, each two chip resistors end to end with flux residue at the joints, in sizes 0201, 0402, 0603, 0805 and 1206 from smallest to largest. Beside each is the simulated error in the battery reading with the same wet film: 0201 +3.05%, 0402 +2.09%, 0603 +1.73%, 0805 +2.24%, 1206 +1.32%.

Rendered to one scale, with the simulated error for a 9 MΩ over 1 MΩ divider in each size. Pads are KiCad’s standard land patterns.

**The numbers**

9 MΩ over 1 MΩ, film of 939 MΩ per square, 3.00 V cell. Pads are KiCad’s. Squares are for one footprint alone. The film across each part is in the divider’s layout.

| Size | Gap | Pad width | Squares, one part | Film across each part | Error | Reads |
|---|---|---|---|---|---|---|
| 0201 | 0.18 mm | 0.40 mm | 4.16 | 234 MΩ | +3.05% | 3.092 V |
| 0402 | 0.48 mm | 0.64 mm | 2.92 | 343 MΩ | **+2.09%** | 3.063 V |
| 0603 | 0.85 mm | 0.95 mm | 2.48 | 415 MΩ | +1.73% | 3.052 V |
| 0805 | 0.80 mm | 1.40 mm | 3.16 | 320 MΩ | +2.24% | 3.067 V |
| 1206 | 1.80 mm | 1.75 mm | 1.94 | 542 MΩ | +1.32% | 3.040 V |

Part size

### 3.1% on an 0201, 1.3% on a 1206

**Field marks.** A part five times as long cuts the error by a little more than half. A 3.00 V cell reads 3.09 V through 0201 parts and 3.04 V through 1206 parts.

**Look-alike.** Creepage. Against high voltage, the length of the path along the surface is what counts, since a track has to burn across all of it. A film conducts along its whole width, so here the pad’s width counts as much as the gap.

**Range.** Across one footprint the film is worth 1.9 to 4.2 squares side by side, for all five sizes. The 0805 does worse than the 0603: its gap is no longer and its pads are half again as wide.

**Habitat.** Any two-pad part. The numbers are for chip resistors, and a capacitor on the same pads would see the same film.

## What layout can do

*A slot, and what sits nearby*

A slot milled through the board under each part takes away the surface the film would lie on. Under 0603 parts it cuts the error from 1.73% to 0.65%. The film still reaches around the slot’s ends.

What sits beside the midpoint matters more than the parts. A bare test point on the cell’s net, 0.3 mm from the midpoint’s pads, is one more path down from the cell. The error goes from 2.09% to 4.86%.

The same test point on ground pulls the other way, and the error falls to 1.50%. Either one breaks the balance, so an equal divider beside it now moves by 0.9%.

Copper under solder mask doesn’t touch the film. Keep the midpoint short, cover what can be covered, and leave no bare copper of another net next to it.

**Fig. 34j: A slot under the part, and a test point beside it.**

![Fig. 34j: A slot under the part, and a test point beside it](https://nearfieldnotes.com/notes/humidity-leakage/fig-34j.png)

*What the figure shows:* Figure 34j: two rendered pairs of dividers with the simulated error in the battery reading beside each. First, 0603 parts: as they are, +1.73%, and with a slot milled through the board under each part, +0.65%. Second, 0402 parts: as they are, +2.09%, and with a bare square test point of the cell's net 0.3 mm from the midpoint's pads, +4.86%.

Rendered, with the simulated error beside each. The slot lies under the part’s body, between its pads. The square is the bare test point.

**The numbers**

10 MΩ in all, film of 939 MΩ per square, 3.00 V cell. A slot is the pads’ width plus 0.6 mm, 0.2 mm clear of the copper. A test point is a 0.6 mm bare square.

| Layout | Film, cell to midpoint | Error, 9 to 1 | Reads | Error, equal legs | Extra from the cell |
|---|---|---|---|---|---|
| 0603 | 415 MΩ | +1.73% | 3.052 V | 0 | 6.0 nA |
| 0603, slot under each part | 1.1 GΩ | +0.65% | 3.020 V | 0 | 2.3 nA |
| 1206 | 542 MΩ | +1.32% | 3.040 V | 0 | 4.5 nA |
| 1206, slot under each part | 1.73 GΩ | +0.42% | 3.012 V | 0 | 1.4 nA |
| 0402 | 343 MΩ | +2.09% | 3.063 V | 0 | 7.3 nA |
| 0402, test point of the cell’s net | 158 MΩ | +4.86% | 3.146 V | +0.92% | 17.5 nA |
| 0402, test point of ground | 389 MΩ | +1.50% | 3.045 V | −0.92% | 8.5 nA |

## A smaller divider, switched

*0.21% at 1 MΩ, 0.02% at 100 kΩ*

The film is a fixed few hundred megohms. Make the divider ten times smaller and the film moves it ten times less: 0.21% at 1 MΩ, where a 3.00 V cell reads 3.006 V, and 0.021% at 100 kΩ.

Humidity does the rest. Below 70% this residue moves even the 10 MΩ divider by less than 0.01%. Between 70 and 90% the error grows more than a hundredfold.

That is the answer to how big. At 1 MΩ the worst of it is 6 mV on the reading. At 10 MΩ it is 63 mV.

**Fig. 34k: Error in the reading, against humidity.**

![Fig. 34k: Error in the reading, against humidity](https://nearfieldnotes.com/notes/humidity-leakage/fig-34k.png)

*What the figure shows:* Figure 34k: the simulated error in the battery reading against relative humidity from 60 to 99%, on a log scale, for 9 to 1 dividers of three sizes on 0402 parts with malic-acid residue. Each line climbs steeply between 70 and 90% and flattens above 95%. The 10 megohm divider goes from 0.0007% at 60% to 0.05% at 80%, 0.69% at 90% and 2.09% at 99%. The 1 megohm divider ends at 0.21% and the 100 kilohm divider at 0.021%, each line a tenth of the one above it.

Simulated for 9 to 1 dividers on 0402 parts, with a film set by DTU’s malic-acid comb at each humidity.

**The numbers**

Malic acid, 50 µg/cm², 9 to 1 dividers on 0402 parts. The last column takes the comb’s 0.3 mm pitch as line plus gap, which makes the film four times as resistive.

| Humidity | DTU’s comb | Film, per square | 10 MΩ | 1 MΩ | 100 kΩ | 10 MΩ, other reading |
|---|---|---|---|---|---|---|
| 60% | 1,635 MΩ | 2,950 GΩ | +0.00067% | +0.000067% | +0.0000067% | +0.00017% |
| 70% | 303.7 MΩ | 548 GΩ | +0.0036% | +0.00036% | +0.000036% | +0.00090% |
| 80% | 21.12 MΩ | 38.1 GΩ | +0.052% | +0.0052% | +0.00052% | +0.013% |
| 90% | 1.58 MΩ | 2.85 GΩ | +0.69% | +0.069% | +0.0069% | +0.17% |
| 95% | 0.65 MΩ | 1.17 GΩ | +1.67% | +0.17% | +0.017% | +0.42% |
| 98% | 0.55 MΩ | 993 MΩ | +1.97% | +0.20% | +0.020% | +0.50% |
| 99% | 0.52 MΩ | 939 MΩ | +2.09% | +0.21% | +0.021% | +0.52% |

A 100 kΩ divider left on empties the cell in 10 months. So switch it. A small FET under the bottom resistor connects the divider only while the microcontroller takes a reading, and the rest of the time it draws nothing.

Or leave the divider out. Many microcontrollers can measure their own supply against a reference inside the chip. On Nordic’s nRF52832 the ADC takes the supply pin as an input, with no parts on the board for a film to bridge.

Some regulators avoid the problem the same way. TI’s *TPS62840* and Analog Devices’ *MAX17222* each set their output from one resistor that they read once at start-up, and then ignore.

**Fig. 34l: The divider, switched.**

![Fig. 34l: The divider, switched](https://nearfieldnotes.com/notes/humidity-leakage/fig-34l.png)

*What the figure shows:* Figure 34l: the divider made of 90 kilohms over 10 kilohms, with an N-channel FET between the bottom resistor and ground and its gate on a microcontroller pin. With the FET off no current runs in the divider. With it on for a reading, the same film moves the reading by +0.021%, so a 3.00 V cell reads 3.001 V.

The FET is off between readings. While it is off the midpoint rises to the cell’s voltage, which the ADC pin has to tolerate. Here it does, since the microcontroller runs from the same cell.

## Clean the board properly, or coat it

*A wipe can make it worse*

No residue, no film. A board that is washed well after soldering goes back to the clean laminate’s hundreds of gigohms.

A quick wipe is not a wash. It dissolves the residue and spreads it thin across the gaps it used to sit beside. Ganssle wiped a rosin-flux board with isopropyl alcohol and its leakage went from 2 pA to 32 pA, until a second, more careful cleaning.

A conformal coating keeps liquid water off the copper. It also seals in whatever is under it, so it goes on a clean board.

The same film is behind another fault. A 32 kHz watch crystal’s oscillator runs on so little current that a leak across its pins can slow its start or stop it. TI’s guide to those oscillators names moisture drawn to flux residue as a cause.

[Note 33](https://nearfieldnotes.com/notes/back-powering/) follows a different leak on a board like this one, through the bus pins of a sensor that is switched off.

## Which divider?

*Three questions*

The choice comes down to what the microcontroller can do by itself, whether it has a pin to spare, and how much error the reading can take.

Key to a battery reading on a coin cell

### Is a divider needed, and how large can it be?

1. 1a The microcontroller can measure its own supply No divider
2. 1b It can’t, or the voltage is above its supply Go to 2
3. 2a A pin is free to switch the divider 100 kΩ, switched
4. 2b No pin is free Go to 3
5. 3a 0.21% in damp air and 11.7% of the cell a year are acceptable 1 MΩ, left on
6. 3b They aren’t 10 MΩ, on a washed or coated board

The board in Fig. 34a ends at 1a. Its microcontroller runs straight from the cell and can measure its own supply.

#### Conditions

- **Simulated:** Every error and reading on this page comes from a simulation of a film on the board’s surface. None was measured on a board.
- **Film:** A uniform sheet of 939 MΩ per square over the whole patch of board, under the parts included. Bare pads are perfect conductors. Copper under solder mask doesn’t touch the film.
- **Where 939 MΩ comes from:** DTU’s measured comb with malic acid, 50 µg/cm², at 99% humidity and 25 °C: 0.52 MΩ. The comb is 13 × 25 mm with a 0.3 mm pitch. Read as 0.3 mm lines and 0.3 mm gaps, it is 1,806 squares of film side by side.
- **Divider:** 9 MΩ over 1 MΩ on a 3.00 V source, unless a figure says otherwise. The ADC pin draws nothing.
- **Pads:** KiCad’s standard land patterns for 0201 to 1206 chip resistors. The two parts sit end to end with 0.5 mm between the midpoint’s two pads, which a trace under solder mask joins.
- **Slot:** Under each part, between its pads, 0.2 mm clear of the copper and 0.6 mm longer than the pads are wide. No film in it.
- **Test point:** A bare 0.6 mm square, 0.3 mm from the midpoint’s pads.
- **Solver:** A finite-difference solve of the film’s potential on a 10 µm grid, which gives the conductance between each pair of nets. Going from a 20 µm grid to a 5 µm one moves one 0402 footprint’s figure from 2.86 to 2.94 squares.
- **Battery use:** Arithmetic: 3.0 V across the divider all year, and a 225 mAh cell.
- **Clean board:** Ganssle’s 20 pA is converted to 165 GΩ at the 3.3 V his text implies.
- **Render:** Blender. The board is an example drawn for this page, with generic parts.

Simulated from others’ measurements. Nothing on this page has been measured on a board.

#### Limits

- A uniform film is the mild end. DTU measured real 0402, 0603 and 0805 land patterns within ten times its comb’s resistance for one acid. With ten times the comb across each part, this divider is off by 3.4% at 80% humidity and 41% at 90%.
- The paper doesn’t say whether the comb’s 0.3 mm pitch is the gap or the line plus the gap. Read the second way, the film is four times as resistive and the 10 MΩ error at 99% is 0.52%.
- One residue stands for all. Malic acid starts to dissolve near 80% humidity. An adipic-acid flux stays dry to about 98%, and commercial blends differ.
- Breath is not simulated. Condensed water is wetter than 99% humidity, and how much residue it dissolves was not modeled.
- The film has no time in it. A real one takes minutes to form and dries out at a lower humidity than it formed at.
- Leakage through the laminate and inside the parts is left out, and so is the ADC pin’s own leakage.

#### Files

- sim/film.py The film solver, the land patterns, DTU’s table and every layout
- sim/site.py The same solver’s runs for this page: by humidity, by ratio, and the current map
- render/scene.py The board and the test coupons in Blender

#### Sources

- [Joshy, Verdingovas, Jellesen and Ambat, “Circuit analysis to predict humidity related failures in electronics”, Microelectronics Reliability 93, 2019: the comb’s resistance by acid and humidity](https://backend.orbit.dtu.dk/ws/files/200989954/postprint.pdf)
- [Jack Ganssle, “Leaks and Drains, Take 2”, 2013: clean FR-4, solder mask, and the alcohol wipe](https://www.ganssle.com/rants/leaksanddrains-take2.html)
- [Piotrowska and others, DTU, 2015: blends of flux acids take up water at lower humidity](https://backend.orbit.dtu.dk/ws/files/118443855/Full_paper_FINAL.pdf)
- [TI SLAA322, MSP430 32 kHz crystal oscillators: humidity and flux residue](https://www.ti.com/lit/pdf/slaa322)
- [TI TPS62840 datasheet, its VSET pin](https://www.ti.com/lit/ds/symlink/tps62840.pdf)
- [Analog Devices MAX17220 to MAX17225 datasheet, its RSEL pin](https://www.analog.com/media/en/technical-documentation/data-sheets/MAX17220-MAX17225.pdf)
- [Nordic nRF52832 product specification v1.8, its ADC’s supply input and internal reference](https://web.archive.org/web/20211125210020/https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.8.pdf)
- [KiCad footprint library, Resistor_SMD: the land patterns](https://gitlab.com/kicad/libraries/kicad-footprints)

What should the next note be? [Ask for one](https://nearfieldnotes.com/#ask-for-a-note)

---

Source: https://nearfieldnotes.com/notes/humidity-leakage/

Cite as: Michael Walker, “Humidity leakage”, Near Field Notes, Note 34, Rev 1, 13 Nov 2026. https://nearfieldnotes.com/notes/humidity-leakage/

Figures: free to reuse under CC BY 4.0 (https://nearfieldnotes.com/license/). Each one's image is linked under its name. Credit Michael Walker, Near Field Notes, and link the figure: this address plus #fig- and its number, like https://nearfieldnotes.com/notes/humidity-leakage/#fig-34a.
