ForHosting KIT · Engineering & construction

Capacitor charging calculator

With 1 kΩ, 1 µF and a 5 V supply, the capacitor reaches 3.16060279414 V after 1 ms, which is one time constant and 63.2120558829% of the supply. Enter the resistance, capacitance, supply and elapsed time. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Series resistance in ohms
1,000
Capacitance in farads
0.000001
DC supply
5
Time
0.001
You get
Time constant
0.001
Tau
0.001
Capacitor voltage
3.1606027941
Voltage
3.1606027941

When a DC supply is switched onto a series resistor and an initially uncharged capacitor, the capacitor voltage does not jump; it rises smoothly toward the supply as charge accumulates on the plates. The classical first-order solution is V_c of t equals V_s times one minus e to the minus t over R C, where R is series resistance in ohms, C is capacitance in farads, V_s is the step supply in volts, and t is elapsed time in seconds. Designers use that curve to size timing networks, check how close a rail has settled after a power-on delay, and turn RC products into percent-of-supply milestones at one, two, three, and five time constants. This capacitor charging calculator accepts finite non-negative R and C, a finite supply voltage, and a non-negative time, then returns the capacitor voltage, the RC time constant, the charge fraction, stored charge, and the instantaneous series current from a single deterministic evaluation. Negative elapsed time is rejected with a clear validation error because the transient model is defined for t greater than or equal to zero after the switch closes.

How capacitor voltage rises during series RC charging

Start from Kirchhoff's voltage law on a series loop that contains a constant supply V_s, a resistor R, and a capacitor C that is initially uncharged. The current through the resistor equals C times dV_c over dt, and the resistor drop is R times that current, so the capacitor voltage obeys the linear ODE R C dV_c over dt plus V_c equals V_s.

With V_c of zero equal to zero at the switching instant, the unique solution is V_c of t equals V_s times one minus the exponential of minus t over tau, where the time constant tau equals R times C. At t equals zero the voltage is zero; after one tau it has reached about sixty-three point two percent of V_s; after three tau roughly ninety-five percent; and after five tau about ninety-nine point three percent, which is the classic settling rule of thumb.

The complementary current is I of t equals V_s over R times e to the minus t over tau, large at the first instant and decaying toward zero as the capacitor approaches open-circuit at DC. Stored charge on the plates is simply C times the instantaneous voltage, so once V_c is known the coulomb count follows without a second differential equation.

The model assumes ideal linear parts, no dielectric absorption, and a pure step applied at t equals zero; real switches, ESR, and leakage add second-order effects that belong on separate analysis paths. Energy stored is one half C V_c squared and is intentionally not the primary output here, because search intent for charging voltage versus time is different from search intent for energy or for the bare product Q equals C V at a fixed bias.

Where capacitor charging calculators show up in real work

Introductory electronics labs constantly assign RC charging plots so students can mark one-tau and five-tau milestones on a scope before they move on to discharge and multi-stage filters. Embedded and power-electronics bring-up teams estimate how long a soft-start RC or a reset supervisor network needs before a rail has reached a fraction of the final supply, then convert that delay into firmware timeouts and brown-out margins.

Analog designers sizing sample-and-hold windows, peak detectors, and RC timing blobs need V_c of t rather than only the bare time constant, because percent-of-final voltage is the acceptance criterion on the bench. Keep the static Q equals C V product, the tau equals R C time-constant-only landing, energy one half C V squared, and discharge-from-initial-voltage calculators on separate pages so each search intent has one clear tool rather than an overloaded multi-formula page that confuses both students and search engines.

Lab RC charging drills

Compute V_c(t) and percent-of-supply at one, three, and five time constants so students can compare scope cursors with the ideal exponential curve.

Soft-start and reset timing

Estimate capacitor voltage after a power-on delay for RC soft-start and supervisor networks before locking firmware timeouts.

What formula does this capacitor charging calculator use?

V_c(t) = V_s × (1 − e^(−t/(R×C))) for an initially uncharged capacitor in series with R driven by a step supply V_s. The time constant is τ = R×C.

What happens if time is negative?

Elapsed charging time must be ≥ 0 seconds; negative time is rejected and is not charged.

Do I pass microfarads and kilohms or SI base units?

Always SI base units: farads, ohms, volts, and seconds. For 1 µF pass 1e-6; for 1 kΩ pass 1000. Prefix strings like "1uF" are not parsed.

What does it cost?

The browser tool is free and runs locally.

How long does a capacitor take to be almost fully charged?

About five time constants. After one RC period the voltage reaches 63.2% of the supply, after three about 95% and after five about 99.3%, the usual rule of thumb for a settled rail.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/elec/capacitor-charge-time

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/elec/capacitor-charge-time \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"resistance":1000,"capacitance":0.000001,"supply_voltage":5,"time":0.001}'
{
  "resistance": 1000,
  "capacitance": 0.000001,
  "supply_voltage": 5,
  "time": 0.001
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "elec.capacitor_charge_time",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

What you send and what you get back

Numeric values and numeric strings are both accepted so form widgets and spreadsheet paste stay convenient; SI prefix strings such as one microfarad written as text are not parsed, so pass one times ten to the minus six for a microfarad part and one thousand for a one-kilohm resistor. Resistance and capacitance must be greater than or equal to zero; elapsed time must be greater than or equal to zero. NaN and Infinity are rejected. Classic classroom checks include one kilohm and one microfarad at five volts after one millisecond, which is exactly one time constant and should sit near sixty-three point two percent of five volts, and the t equals zero case that must return zero volts on the capacitor. Send four finite numbers: resistance under the field resistance in ohms, capacitance under capacitance in farads, supply_voltage under supply_voltage in volts, and time under time in seconds. Aliases are accepted for convenience—r, R, or ohms for resistance; c, C, or farads for capacitance; vs, Vs, voltage, or volts for the supply; t or seconds for elapsed time—but only one key may appear for each quantity in a request. Negative time is rejected with invalid_input and the message states that negative time is not allowed; negative R or C fail the same way. On success the response echoes cleaned inputs, time_constant and tau as R times C, capacitor_voltage and voltage as V_c of t, charge_fraction between zero and one, percent_of_supply as one hundred times that fraction, charge and charge_coulombs as C times V_c, current and current_amperes as the series current when it is finite, unit labels, a short expression string, method rc_series_charge, and the formula string. Pricing for successful API calls is the published base of $0.002 per item; validation failures do not consume prepaid balance.

Where capacitor charging calculators show up in real work

Because this capability is a pure parse engine, API pricing is the published base of $0.002 per successful item and failed validation does not consume balance.

CI fixtures and answer keys

Script the same V_c(t)=V_s(1−e^(−t/RC)) evaluation used in the browser so automated graders share one ground truth for charging problems.

What voltage do I get at t = 0 or after many time constants?

At t = 0 the capacitor voltage is 0 (initially uncharged). As t grows, V_c approaches V_s; after about 5τ it is roughly 99.3% of the supply.

Read the full KIT documentation →