# RC circuit calculator > How fast does a capacitor charge or discharge? The time constant, the voltage at any moment of charging or discharging, and the cut-off frequency. Find the RC time constant, the capacitor voltage at any time while charging or discharging, the time to 99 % and the filter cut-off frequency. - Page: https://how.box/rc-circuit/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/rc-circuit/?m={m}&r={r}&ru={ru}&c={c}&cu={cu}&v={v}&t={t}&tu={tu}&p={p} - `m` (charge or discharge): charge (default) or discharge. Example: `charge`. - `r` (number 0.000001 to 1e9): Resistance in ru. Example: `10`. - `ru` (ohm, kohm or megohm): ohm, kohm or megohm. Example: `kohm`. - `c` (number 0.000001 to 1e9): Capacitance in cu. Example: `100`. - `cu` (pf, nf, uf or farad): pf, nf, uf or farad. Example: `uf`. - `v` (number 0.000001 to 1e6): Supply or starting voltage in volts. Example: `5`. - `t` (number 0 to 1e9): Time in tu. Example: `1`. - `tu` (us, ms, s or min): us, ms, s or min. Example: `s`. - `p` (number 1 to 99.99): Per cent done, for the time it takes. Example: `99`. Example answer: https://how.box/rc-circuit/?m=charge&r=10&ru=kohm&c=100&cu=uf&v=5&t=1&tu=s&p=99 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `rc_circuit_calculate`: RC circuit: time constant τ = R·C, the capacitor voltage at a time while charging (V₀(1 − e^(−t/τ))) or discharging (V₀·e^(−t/τ)), the time to get a given per cent of the way (−τ·ln(1 − p/100)) and the cut-off frequency 1/(2πRC). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"rc_circuit_calculate","arguments":{"mode":"charge","resistance":10,"resistance_unit":"kohm","capacitance":100,"capacitance_unit":"uf","voltage":5,"time":1,"time_unit":"s","done":99}}}` - GET: https://how.box/mcp/run/rc_circuit_calculate?mode=charge&resistance=10&resistance_unit=kohm&capacitance=100&capacitance_unit=uf&voltage=5&time=1&time_unit=s&done=99 ## How it works A capacitor charging through a resistor fills quickly at first and then ever more slowly: the closer it gets to the supply voltage, the smaller the voltage left across the resistor, so the less current flows to charge it. Discharging is the mirror image. Both follow an exponential curve set by one number, the time constant. The time constant is τ = R × C, with R in ohms and C in farads giving seconds. While charging, V(t) = V₀ × (1 − e^(−t/τ)); while discharging, V(t) = V₀ × e^(−t/τ), where V₀ is the supply or starting voltage and e ≈ 2.718. With 10 kΩ and 100 µF, τ = 10 000 × 0.0001 = 1 s, so after 1 s a 5 V supply has charged the capacitor to 5 × (1 − e^(−1)) = 3.16 V, 63 % of the way. Each further τ closes 63 % of the gap that is left: 86 % at 2τ, 95 % at 3τ and over 99 % at 5τ. The same pair used as a filter passes frequencies below about f = 1 ÷ (2πRC) and weakens those above it. Real capacitors have tolerances of 10 % or more and some leakage, so treat the times as estimates. Source: OpenStax University Physics, volume 2, section 10.5. ## FAQ **Does changing the supply voltage change the time constant?** No. With the same ideal resistor and capacitor, the time constant stays the same. A higher supply changes the voltage and current, but not the time to reach the same percentage. **How long until a capacitor is fully charged?** In theory never, because the curve only approaches the supply. In practice five time constants is taken as fully charged: the capacitor is then at 99.3 %. **How do I make a delay of a given time?** Choose a capacitor and change the resistance until the time to reach your switching level (under More options, as a percentage) matches the delay. A circuit that switches at two thirds of the supply waits about 1.1 τ. **What is the cut-off frequency of an RC filter?** The frequency 1 ÷ (2πRC) at which the filter passes about 71 % of the signal's voltage (−3 dB). Below it a low-pass RC filter lets the signal through; above it the signal falls off. **In discharge mode, does 99% done mean 99% of the voltage remains?** No. It means 99% of the initial voltage has been lost, leaving 1%. The percentage is progress through the discharge, not the remaining voltage. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)