Charge from current and time calculator
A current of 2 A flowing for 5 seconds moves 10 coulombs: charge is simply current times time. Enter the current in amperes and the elapsed time in seconds to get the charge, the first step in any battery or capacitor estimate. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Current
- 2
- Time
- 5
- Charge
- 10
- Charge C
- 10
When current is measured in amperes and time in seconds, the product is charge in coulombs—the SI foundation behind battery coulomb counting, constant-current charging estimates, and introductory circuit homework. Negative elapsed time is rejected as invalid input because a duration cannot run backwards in this product contract.
What charge from current and time means and how to choose inputs
Write the problem with two known quantities: electric current I in amperes and elapsed time t in seconds. Under a constant-current model the total charge that moves past a reference plane is simply the product Q equals I times t. One ampere sustained for one second transfers one coulomb; two amperes for five seconds transfer ten coulombs; half an ampere for one hour transfers one thousand eight hundred coulombs.
That identity is the first step in capacitor and battery estimates before you bring in voltage, capacity, or coulombic efficiency. Current may be positive or negative so reverse flow can be represented as signed charge; zero current or zero time is valid and returns zero charge.
Reading charge, formula fields, and validation errors
The primary result is charge in coulombs, also exposed as charge_C for clients that prefer an explicit unit suffix in the field name. The units block documents ampere, second, and coulomb labels for display without hard-coding unit strings in every client. Use charge alone when a log or homework checker needs a single coulomb figure; use the echoed inputs when you need to prove which values produced that result.
The engine never returns Infinity or NaN for ordinary finite inputs within ordinary floating-point range. Authors shipping SDKs can map charge and formula directly into UI copy that matches what students write by hand when they apply Q equals I t on a worksheet before moving on to capacitance or battery capacity problems.
What you can do with it
Constant-current charge estimates
Engineers and students enter known current and duration to recover transferred charge in coulombs for battery coulomb counting and simple charging-step models.
FAQ
What happens if time is negative?
Elapsed duration must be non-negative; negative time is rejected and is not charged.
Which units should I use?
SI base units only: current in amperes (A), time in seconds (s), charge in coulombs (C). Convert mA or hours yourself before calling.
Is the charge from current and time calculator free?
The browser tool runs free on your device.
Can this solve for current or time instead of charge?
No. This capability computes charge only from current and time. Use a rearrange-capable charge-current-time tool when the unknown is I or t.
Can the current be negative?
Yes. A negative current stands for flow in the reverse direction and gives a negative charge of the same size. A zero current or a zero time is also accepted and simply gives zero coulombs.
Related tools
For developers — API access
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.
API endpoint
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.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/elec/charge-current-time-q \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"current":2,"time":5}'const res = await fetch("https://api.kit.forhosting.com/elec/charge-current-time-q", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"current": 2,
"time": 5
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/elec/charge-current-time-q",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"current": 2,
"time": 5
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/elec/charge-current-time-q", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"current":2,"time":5}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"current":2,"time":5}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/elec/charge-current-time-q", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"current": 2,
"time": 5
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "elec.charge_current_time_q",
"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.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
Electric charge transferred under a constant current is the product of that current and the elapsed time: Q equals I times t.
What charge from current and time means and how to choose inputs
Send a JSON object with required fields current and time as finite numbers or numeric strings; aliases such as I, A, amps, amperes for current and t, seconds, duration for time are accepted so client code can speak textbook English. Time must be non-negative because a negative duration is not an elapsed interval in this product and fails with invalid_input. Magnitudes must stay within the published finite bounds so Worker isolates stay stable. Identical inputs always produce identical JSON because the path is pure arithmetic with no network, no random seed, and no wall clock. Convert milliamps or hours yourself before calling if your datasheet uses those units; this endpoint speaks SI base units only.
Reading charge, formula fields, and validation errors
The formula string is always Q equals I times t, and the method label is always charge_from_current_time so downstream code can branch without sniffing shapes. Missing required fields, non-finite numbers, out-of-range magnitudes, and negative time all fail with invalid_input and are not charged after the engine rejects the request.
API usage, pricing, batteries, capacitors, and practical limits
Keep inputs within ordinary engineering ranges—microamps to kiloamperes, seconds to multi-hour runs—and prefer classroom-scale numbers for grading oracles. Negative time is never silently clamped: it fails loudly so a sign error in a script surfaces immediately rather than producing a nonsense positive charge. Send a JSON body with current and time and call the free in-browser charge from current and time calculator for quick coulomb checks, constant-current charge estimates, classroom demos, and lab notebooks without installing a spreadsheet. Use the prepaid API when a battery tooling service, IoT firmware test harness, physics tutoring platform, or classroom grading pipeline needs a stable contract under KIT balance at $0.002 per successful item; validation failures never consume balance after the engine rejects the request. Pair this endpoint with unit converters when inputs arrive in milliamps or hours, with capacitor charge tools when the next unknown is Q equals C times V, and with general charge-current-time solvers when you need to rearrange for an unknown current or duration instead of charge alone. This product assumes constant current over the interval; if the ammeter reading drifts, integrate piecewise outside this capability or use average current as a classroom approximation.
Integration use cases
Physics homework and lab grading
Courses pin deterministic JSON fixtures for Q=I·t, including intentional negative-time cases that must fail with invalid_input.
Firmware and process test harnesses
Embedded and lab tools convert planned current and run time into expected coulomb budgets for regression tests without reimplementing the product in every language.
Technical questions
How do I calculate electric charge from current and time?
Send JSON with current in amperes and time in seconds (for example current: 2, time: 5). The response returns charge in coulombs via Q = I · t.