Capacitor Charging Calculator – Voltage vs Time in an RC Circuit

Use this free Capacitor Charging Calculator to find the voltage across a capacitor as it charges through a resistor. Pick a mode: find the voltage after a given time, or find the time needed to reach a target voltage. The calculator also shows the RC time constant τ.

Connect a discharged capacitor to a battery and it does not snap instantly to the battery's voltage. Charge has to be carried onto its plates by a current, and that takes time — time set by how hard the circuit pushes (the resistance) and how much charge the capacitor needs per volt (the capacitance). In the first instant the empty capacitor accepts current eagerly, almost like a short circuit; but every coulomb that arrives raises its voltage, and that rising voltage fights the supply, so the current fades and the charging slows down. The result is one of the most recognisable curves in electronics: a steep rise that flattens into a long, patient approach towards the supply voltage.

One number conducts the whole performance: the time constant τ = RC. Multiply the resistance in ohms by the capacitance in farads and you get a time in seconds that acts as the circuit's natural clock. After one time constant the capacitor always reaches 63.2% of the supply; after two, 86.5%; after five, 99.3% — the same percentages whether τ is ten microseconds in a camera flash or ten seconds in a kitchen timer. Learn to think in time constants and every RC circuit, from a switch debouncer to a defibrillator, becomes the same familiar curve wearing a different clock speed.

Capacitor Charging Calculator — formula and diagram

This calculator works the curve in both directions. In voltage mode it tells you where the capacitor has got to after any time you choose; in time mode it inverts the formula and tells you how long a target voltage takes — the question that matters when you are designing a delay, a trigger threshold or a soft-start. Below you will find the formula and its rearrangements, six worked examples spanning microseconds to tens of seconds, the quick-reference percentages worth memorising, and one genuinely surprising fact: no matter what resistor you choose, exactly half of the energy the supply delivers during charging ends up as heat.

R C Vs Vs V(t) climbs, then creeps

Formula

Capacitor voltage while charging: V(t) = Vs × (1 − e−t/RC)  •  time constant τ = R × C

The same relationship rearranges to answer the other two questions you can ask of it. Solving for the time to reach a chosen voltage: t = −τ × ln(1 − V/Vs) — the mode this calculator uses for target voltages. The charging current, which starts at its peak and decays away, is I(t) = (Vs/R) × e−t/τ: at the switch-on instant the full supply voltage sits across the resistor, so the initial current is simply Vs/R, and from there it falls with the same exponential. Units decide most real errors: R in ohms and C in farads give τ in seconds, and a capacitance typed in microfarads must be multiplied by 10−6 first — the calculator's unit menu does that conversion for you.

SymbolMeaningUnits
Vssupply (final) voltagevolts (V)
V(t)capacitor voltage after time tvolts (V)
Rcharging resistance in the loopohms (Ω)
Ccapacitancefarads (F)
τtime constant, τ = RCseconds (s)
eEuler's number, 2.71828…—

Why the curve is an exponential: charging slows itself down

The shape of the charging curve is not an arbitrary formula — it is forced by one simple fact: the current at any moment is driven by the voltage gap that remains. The resistor sees not the supply voltage but the difference Vs − V(t). At the start the capacitor is empty, the gap is the full Vs, and current rushes in at Vs/R. As charge accumulates and V(t) climbs, the gap shrinks, so the current shrinks — which means the voltage climbs more slowly — which means the gap shrinks more slowly still. Any process whose rate is proportional to how much is left to do traces exactly this curve, the exponential approach. Radioactive decay, cooling coffee and a filling bath with a pressure-fed tap are all the same mathematics wearing different clothes.

This self-braking has a practical consequence designers rely on: the curve is steepest exactly when the capacitor is emptiest. A circuit that must react quickly to the start of charging — a power-on reset, an edge detector — exploits that steep beginning, while a circuit that needs a long, calm delay uses the flat tail, where a large change in time produces only a small change in voltage. Choosing where on the curve your threshold sits is choosing between speed and noise immunity, and the time-to-target mode of this calculator exists precisely to place that threshold deliberately rather than by trial and error.

63.2% at t = τ 86.5% at t = 2τ Vs (never quite reached) τ 2τ time →

How to use

  1. Choose the mode: voltage after a time, or time to reach a target voltage.
  2. Enter the supply voltage, the charging resistance and the capacitance (pick its unit).
  3. Enter the time (or the target voltage) and click "Calculate".
  4. Read the time constant first: it tells you the circuit's natural timescale, so you can sanity-check the answer — at t = τ the voltage must be 63.2% of the supply, whatever values you entered.

Worked examples

Example 1 — the reference circuit. A 100 µF capacitor charges through a 10 kΩ resistor from a 12 V supply.
τ = RC = 10,000 × 100 × 10−6 = 1 s.
After t = 2 s: V = 12 × (1 − e−2) = 12 × 0.8647 = 10.38 V — that is 86.47% charged.
To reach 9 V takes t = −1 × ln(1 − 9/12) = 1.39 s. The initial current, for reference, is 12 ÷ 10,000 = 1.2 mA, fading from there.

Example 2 — a fast logic timer. A 10 µF capacitor charges through 1 kΩ from a 9 V rail: τ = 1,000 × 10 × 10−6 = 0.01 s = 10 ms. After one time constant (10 ms) the voltage is 9 × 0.6321 = 5.69 V. Half charge (4.5 V) arrives sooner than intuition suggests — at t = τ × ln 2 = 6.93 ms — because the curve does most of its climbing early.

Example 3 — a camera-flash style reservoir. A 470 µF capacitor charges through 100 Ω from 5 V: τ = 100 × 470 × 10−6 = 0.047 s. After 0.1 s (just over 2τ) the voltage is 5 × (1 − e−2.13) = 4.40 V, already 88% of the way — the remaining 0.6 V will take several more time constants to creep in, which is why flash-ready lights trigger at a threshold rather than at "full".

Example 4 — the long delay. A 10 µF capacitor behind a 1 MΩ resistor gives τ = 1,000,000 × 10 × 10−6 = 10 s. From a 12 V supply, the voltage after 30 s is 12 × (1 − e−3) = 11.40 V (95.02%), and reaching a true 99% takes 4.605τ ≈ 46.1 s. Big delays need big τ, and big τ usually means a large resistance rather than a huge capacitor.

Example 5 — microseconds in digital electronics. A 100 nF capacitor with a 100 Ω resistor: τ = 100 × 100 × 10−9 = 10 µs. On a 3.3 V logic rail, the voltage after 25 µs (2.5τ) is 3.3 × (1 − e−2.5) = 3.03 V — comfortably past a typical logic-high threshold, which is why power-on reset circuits built from exactly these values release the processor after a few tens of microseconds.

Example 6 — placing a threshold. A 24 V system uses R = 20 kΩ and C = 100 µF, so τ = 2 s. A supervisor circuit must trip at 12 V (half the supply) and warn at 20 V. The trip arrives at t = 2 × ln 2 = 1.39 s; the warning at t = −2 × ln(1 − 20/24) = 3.58 s. Note the asymmetry: the second half of the voltage range takes far longer than the first half — the signature of the exponential.

Capacitor charging in real life

Camera flashes and strobes. The whine you hear from a charging flash is its reservoir capacitor climbing this curve through a step-up converter; the ready-light lights at a threshold near the top of the curve, not at 100%.

The 555 timer. The world's most popular timer chip watches a capacitor charge towards two-thirds of the supply and flips at that point — which happens at t = τ × ln 3 ≈ 1.1τ. Millions of delays, flashers and tone generators are this one threshold on this one curve.

Switch debouncing. Mechanical contacts bounce for milliseconds, spraying false edges. A small RC charger smooths the bounce into one clean exponential rise, and a logic gate reads a single press.

Soft-start power supplies. A large reservoir capacitor connected directly to a supply would gulp an enormous switch-on current. A charging resistor (often bypassed by a relay once charging completes) stretches τ and tames the surge.

Defibrillators. The device charges a capacitor to a precisely known voltage over a few seconds — the operator is literally waiting for this curve — then dumps the stored energy through the patient's chest in milliseconds.

Power-on reset. Microcontrollers must not start executing until their supply is stable. An RC charger holds the reset pin low until the capacitor's rise crosses the threshold, guaranteeing a clean, ordered start every time.

39% 63% 86% 95% 99% 0.5τ τ 2τ 3τ 5τ % charged

The hidden cost: half the energy always becomes heat

Charge a capacitor from an ideal voltage source through any resistor and a strange bookkeeping fact emerges. The supply delivers a total energy of C × Vs². The capacitor ends up storing only ½CVs². The other half — exactly half, always — is dissipated as heat in the resistor. It does not matter whether R is 10 Ω or 10 MΩ: a smaller resistor charges the capacitor faster with a taller, briefer surge of current, a larger one slower with a gentler flow, but the heat total is identical. For the Example 1 circuit (100 µF, 12 V) the supply delivers 100 × 10−6 × 144 = 14.4 mJ, the capacitor keeps 7.2 mJ, and 7.2 mJ warms the resistor. This is why engineers who care about efficiency charge capacitors with inductors and switching converters instead of plain resistors: the resistor route throws away half the energy before the capacitor does any work at all. It is also why the peak current matters even when the energy is small — with R = 10 Ω instead of 10 kΩ, Example 1's initial current would be 1.2 A rather than 1.2 mA, delivered as a spark-like gulp at switch-on.

Quick reference: the percentages worth memorising

Elapsed timeChargedStill to go
0.5τ39.35%60.65%
1τ63.21%36.79%
2τ86.47%13.53%
3τ95.02%4.98%
4τ98.17%1.83%
5τ99.33%0.67%

Read the table backwards for design targets: reaching 50% takes 0.693τ, 90% takes 2.303τ, 95% takes 2.996τ, 99% takes 4.605τ and 99.9% takes 6.908τ. If a specification says "charged within 0.1%", multiply your τ by 6.9 before choosing components — the last fraction of the curve is the most expensive in time.

Energy accounting: where the supply's joules go

Charge a capacitor fully and a curious bookkeeping result appears: exactly half the energy the supply delivers ends up stored, and the other half is lost as heat in the resistor — no matter what the resistance is. Run the numbers on this page's reference circuit (100 µF charged to 12 V): the final charge is Q = CV = 1.2 mC, so the supply, delivering that charge at a constant 12 V, does Q × V = 14.4 mJ of work. The capacitor stores ½CV² = 7.2 mJ. The missing 7.2 mJ warmed the resistor. Choose a bigger R and the same 7.2 mJ is dissipated, just more slowly; choose a smaller R and it is dissipated in a fiercer, briefer pulse. The resistor sets the schedule, never the total.

This 50% tax is why serious power electronics avoids charging capacitors through resistors whenever efficiency matters: switch-mode supplies move charge with inductors precisely to dodge it. It also explains a laboratory curiosity — charge a capacitor, then connect it to an identical empty capacitor, and the pair settles at half voltage with half the original energy gone, "lost" to the resistance (and a whisper of radiation) in the connecting leads, however small that resistance is made. The charging curve this calculator draws is gentle, but it is not free.

Common mistakes

  • Expecting linear charging. A capacitor does not gain the same voltage each second. It gains 63% of the remaining gap per time constant — fast at first, crawling at the end. Linear estimates overstate the voltage late in charging and understate it early.
  • Designing a trigger at 100% of Vs. The curve approaches the supply asymptotically and never arrives, so a comparator set at Vs never fires. Real designs trigger at 63%, ⅔ or 90% — points the curve actually reaches.
  • Slipping a factor of 1,000 in the capacitance unit. 100 µF is 100 × 10−6 F, not 100 × 10−3. A µF/mF mix-up makes τ a thousand times too big or small; use the unit menu and check that τ lands in a plausible range.
  • Ignoring the resistance you didn't draw. The R in τ is the total loop resistance — your resistor plus the supply's internal resistance, wiring and the capacitor's own ESR. Bench measurements of τ often come out longer than the schematic predicts for exactly this reason.
  • Mixing time units. If τ is in milliseconds, t must be too. Entering t = 2 (meaning seconds) against a τ of 10 ms silently computes the voltage after 2 ms — a completely different point on the curve.

FAQ

What is the time constant τ?
τ = RC is the time for the capacitor to reach 63.2% of the supply voltage. After 2τ it is at 86.5%, after 3τ at 95%, and after about 5τ it is treated as fully charged (99.3%).

Does the capacitor ever reach exactly Vs?
In theory, no — the curve approaches Vs but never quite touches it, because the charging current keeps shrinking as the capacitor voltage rises. In practice 5τ is "full".

Why does a bigger resistor slow the charging?
The resistor limits the current that can flow into the capacitor. Doubling R doubles τ, so every stage of charging takes twice as long; doubling C has the same effect because there is more charge to deliver.

What is the charging current at the moment the switch closes?
Its maximum: I₀ = Vs/R, because the empty capacitor drops no voltage, leaving the whole supply across the resistor. In Example 1 that is 12 ÷ 10,000 = 1.2 mA; with a 10 Ω resistor it would be a 1.2 A gulp — the reason supplies need inrush limiting.

Does the supply voltage change the time constant?
No. τ = RC depends only on the components. A higher Vs stretches the curve vertically — every voltage is proportionally higher — but the percentages at each multiple of τ are identical.

What if the capacitor starts out partly charged?
The same curve applies to the remaining gap: V(t) = Vs − (Vs − V₀) × e−t/τ, where V₀ is the starting voltage. Charging from half-full simply starts halfway up the same exponential.

Why is my measured charging slower than the calculation?
Component tolerances, mostly. Electrolytic capacitors are commonly ±20%, the supply has internal resistance, and the capacitor's own ESR and leakage add to the effective R. The formula describes the ideal circuit; real parts scatter around it.

Can a capacitor charge with no resistor at all?
Something always limits the current — the source's internal resistance, the capacitor's ESR, even the wiring. With almost no resistance, τ is tiny and the peak current enormous, which is why shorting a supply into a big capacitor produces a spark. The resistor in the formula is really "all the resistance in the loop".

How much energy is stored once charging finishes?
U = ½CVs². For 100 µF at 12 V that is 7.2 mJ. Note the square: doubling the voltage quadruples the stored energy, which is why high-voltage capacitors command respect even at small capacitances.

Is the discharging curve the same shape?
It is the mirror image: V(t) = V₀ × e−t/τ, falling by 63.2% in the first time constant. The companion Capacitor Discharging Calculator on this site works that side of the cycle, including the charge remaining.

Michael Chen

Michael Chen

Electronics Specialist

Michael Chen creates and reviews our electronics and circuits calculators at CalcVIP. Every calculator is checked against hand-worked examples before it is published, so the formula, the diagram and the answer all agree.

View full profile & all calculators by Chen →