ForHosting KIT · Science

Capacitor charge time

With 1 kΩ and 1 µF the time constant is 1 ms, and a 5 V supply charges the capacitor to 2.5 V after ln 2 time constants. Enter resistance, capacitance, supply and target voltage to get the time in seconds. 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
Resistance
1,000
Capacitance
0.000001
Supply voltage
5
Target voltage
2.5
You get
Time
0.0006931472
Time seconds
0.0006931472
Time constant
0.001
Tau
0.001

When a DC supply is switched onto a series resistor and an initially uncharged capacitor, the capacitor voltage climbs toward the rail as a first-order exponential and never quite reaches the supply in finite time. Engineers, students, and firmware authors often need the inverse of that curve: how many seconds until the voltage hits a chosen threshold such as a logic-high, a brown-out release, or half of the rail. This capacitor charge time calculator accepts series resistance in ohms, capacitance in farads, the DC supply voltage, and the target voltage, then returns t equal to minus R times C times the natural log of one minus V over Vs.

How charging time follows from the RC exponential

Start from Kirchhoff's voltage law on a series loop that contains a constant supply Vs, a resistor R, and a capacitor C that is initially uncharged. The loop equation is R C dVc over dt plus Vc equals Vs. With Vc of zero equal to zero at the switching instant, the unique solution is Vc of t equals Vs times one minus e to the minus t over tau, where the time constant tau equals R times C.

Inverting that closed form for the elapsed time at which Vc equals a chosen target V is a single logarithm: t equals minus tau times ln of one minus V over Vs, which is the same as t equals minus R C ln(1 − V/Vs). The formula is defined only while V and Vs have the same sign and the magnitude of V is strictly smaller than the magnitude of Vs. At V equals zero the capacitor is already at the initial condition, so the time is zero.

At V equal to Vs the argument of the logarithm is zero and the time diverges, matching the physical fact that an exponential approaches its asymptote but never arrives. After one time constant the voltage is about sixty-three point two percent of the supply; after ln(2) times tau it is fifty percent; after three tau roughly ninety-five percent; and after five tau about ninety-nine point three percent, the classic settling rule of thumb.

What to enter and which targets are impossible

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 strictly greater than zero. The target must lie strictly between zero and the supply with the same polarity.

Equality with the supply is also rejected because there is no finite charge time. Opposite polarity is unreachable from an initially uncharged state. A classroom check is one kilohm and one microfarad at five volts aiming for two point five volts, which is fifty percent and must return t equal to tau times ln(2).

Where capacitor charge time shows up in real work

Reset supervisors, power-on delay networks, and RC soft-start blobs are sized so a capacitor voltage crosses a comparator or logic threshold after a known delay; inverting V(t) for t is the direct design step, not an afterthought you get by sweeping time. Embedded bring-up teams convert a chosen rail fraction into a firmware timeout, then add margin so brown-out detectors and PLL lock windows are not racing the analog exponential.

Analog and mixed-signal labs ask students for the time to fifty percent, sixty-three percent, and ninety-five percent of a supply so they can place scope cursors before they move on to discharge and multi-stage filters. Keep the forward V(t) charging calculator, the bare tau equals R C landing, energy one half C V squared, and discharge-from-initial-voltage tools 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.

Power-on and reset delay design

Convert a comparator or logic-high threshold into seconds for an RC supervisor or soft-start network before locking firmware timeouts.

Lab RC charging drills

Compute time to 50%, 63%, and 95% of the supply so students can place scope cursors on the ideal exponential without sweeping t by hand.

What happens if the target voltage exceeds the supply voltage?

An ideal series RC charging waveform cannot pass the supply rail, so that request is not billed.

Why is there no finite time when the target equals the supply?

Vc(t) approaches Vs only as t goes to infinity. Choose a target strictly below the rail (for example 99% of Vs, about five time constants).

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 the capacitor charge time calculator cost?

The browser tool is free and runs locally.

How many time constants until the capacitor is nearly full?

After one time constant the voltage reaches about 63.2 % of the supply, after three about 95 % and after five about 99.3 %, the usual settling rule of thumb.

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/phys/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/phys/capacitor-charge-time \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"resistance":1000,"capacitance":0.000001,"supply_voltage":5,"target_voltage":2.5}'
{
  "resistance": 1000,
  "capacitance": 0.000001,
  "supply_voltage": 5,
  "target_voltage": 2.5
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "phys.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.

If the target exceeds the supply the task fails with invalid_input, because no amount of waiting can push an ideal RC charging waveform past the rail.

Input contract, response shape, and when the target is illegal

POST a JSON body with four required finite numbers: resistance in ohms, capacitance in farads, supply_voltage in volts, and target_voltage in volts. Aliases are accepted for convenience—r, R, or ohms for resistance; c, C, or farads for capacitance; vs, Vs, supply, or vcc for the rail; vt, Vc, target, or charge_voltage for the threshold—but only one key may appear for each quantity. On success the body echoes the cleaned inputs, time and time_seconds as the elapsed seconds, time_constant and tau as R times C, time_constants as t over tau, charge_fraction V over Vs, percent_of_supply, unit_time second, a short expression string, method rc_series_charge_time, and the formula. Successful API calls use the published base of $0.002 per item; validation failures do not consume prepaid balance.

CI fixtures and answer keys

Script t=−RC ln(1−V/Vs) with the same module the browser uses so automated graders share one ground truth for charge-time problems.

How do I calculate capacitor charge time in an RC circuit?

Send finite R in ohms, C in farads, supply_voltage Vs, and target_voltage V. The API returns t = −R×C×ln(1 − V/Vs) in seconds, plus the time constant τ = R×C.

Read the full KIT documentation →