Power calculator
Divide the work done by the time it took: 1000 J delivered in 2 seconds is 500 W of average power, and the result also comes in mechanical horsepower for engine and motor comparisons. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Work done W
- 1,000
- Time
- 2
- Power watts
- 500
- Power hp
- 0.6705110448
- Hp watts
- 745.6998715823
Mechanical power is the rate at which work is done: average power equals work divided by the time over which that work is delivered. Engineering homework, lab reports, machine sizing sketches, vehicle and motor comparisons, and contest problems all ask for the same pair of answers in everyday language—how many watts, and how many horsepower.
What average power tells you
Power is the rate at which work is done. If a motor, a person or a machine transfers 1000 J of energy over 2 seconds, the average power is 500 W, because joules divided by seconds give watts. The same amount of energy moved faster means more power; moved more slowly, less. Power does not say how much energy was transferred in total, only how quickly it happened. That is why nameplates, datasheets and textbook answers quote watts, and why engine and motor comparisons often add horsepower alongside them.
How to use it and common mistakes
Enter the work in joules and the duration in seconds, and the answer comes back in watts and mechanical horsepower. Keep the units consistent: any coherent pair of energy and duration gives a coherent power in the same system, but nothing is converted automatically. The duration must be greater than zero, since dividing by zero has no meaning in this model, and a negative duration is refused as well. The energy figure may be negative: that simply reverses the direction of the transfer and the sign of the power. The result is an average over the whole interval, so it does not describe a varying load or include any efficiency loss.
What mechanical power means and which two quantities you need to send
When work is measured in joules and time in seconds, power comes out in watts, the SI unit used on nameplates, datasheets, and textbook answers. Search intent clusters around phrases such as power calculator, mechanical power from work and time, watts from joules and seconds, work divided by time, horsepower from watts, and P equals W over t. People want a numeric answer they can check against a worksheet, embed in a simulation, or feed into a larger pipeline—not only a reminder that the formula exists.
Units stay consistent with whatever energy and time basis you chose: joules with seconds yield watts; any coherent pair yields a coherent power in the same system. Horsepower is reported as mechanical horsepower so comparisons to engines and motors match common engineering tables rather than metric Pferdestärke alone.
What you can do with it
Homework and lab power drills
Students and graders confirm average mechanical power in watts and horsepower for given work and time, with clear rejection when time is zero or a field is missing.
Motor and machine sizing checks
Quick structured numbers for average power from known work and duty interval without standing up a full multi-body dynamics stack.
FAQ
Which formula does the power calculator use?
Average mechanical power: P = W / t. Power in watts is work divided by time; horsepower is that watt value divided by 745.6998715822702 (mechanical hp).
What happens if time is zero?
Zero time is not allowed because power would require division by zero; those calls are not charged.
Is the power calculator free?
The browser tool runs free on your device.
Can work be negative?
Yes. A negative work value yields negative power, indicating energy transfer in the opposite sense along your chosen axis.
Which horsepower does the result use?
Mechanical horsepower, the unit found in common engine and motor tables, rather than the metric Pferdestärke alone. The watts figure stays the main answer, and the horsepower value is derived from it.
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/mech/power \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"work":1000,"time":2}'const res = await fetch("https://api.kit.forhosting.com/mech/power", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"work": 1000,
"time": 2
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/mech/power",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"work": 1000,
"time": 2
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/mech/power", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"work":1000,"time":2}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"work":1000,"time":2}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/mech/power", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"work": 1000,
"time": 2
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "mech.power",
"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
This capability takes finite work and a strictly positive time interval, divides work by time to form power in watts, converts that result to mechanical horsepower with the standard 550 foot-pound-force per second factor, and returns structured JSON with work, time, power_watts, power_hp, the conversion constant, formula, and method. Zero time, negative time, missing fields, and non-finite values fail with invalid_input before any result is returned.
What mechanical power means and which two quantities you need to send
In classical mechanics, average power over an interval is the work done during that interval divided by its duration: P equals W over t. Delivering work, time, power_watts, power_hp, hp_watts, formula, and method as JSON makes the result easy to paste into notes, diff in automated tests, or reuse across languages without reimplementing the arithmetic.
How this calculator validates input and applies P = W / t
Numeric strings that parse to finite numbers are accepted so forms and CSV-style pipelines can pass values without an extra cast. Time must be strictly positive; zero duration is rejected with a clear message because power is undefined when you divide by zero in this average-power model, and negative time is likewise refused. Work may be signed: a negative value simply reverses the sense of energy transfer and therefore the sign of power. There is no variable load profile, no efficiency correction, and no unit auto-conversion; this is ideal average mechanical power from the two known quantities. Send a JSON body with work and time. Both fields are required and must be finite: missing either field, empty strings, non-numeric text, NaN, and Infinity all fail immediately with invalid_input before any result is returned, and failed validation is not charged. Aliases are recognized for convenience: work also accepts W, energy, and work_done; time also accepts t, duration, and time_taken. After validation, power_watts is computed as work divided by time and power_hp is that watt value divided by the mechanical horsepower constant 745.6998715822702 watts per horsepower. Results are rounded to a stable decimal precision so the same input always yields the same JSON across JavaScript engines. The same pure function powers the free in-browser tool and the API path.
Practical use, limits, pricing, and delivery channels
Use the browser tool when you want an immediate watts and horsepower check while grading homework, verifying a lab energy-and-time measurement, sizing a motor from known work and duty time, or comparing machines on a shared power basis. There is no language model, no external physics service, and no randomness, so the capacity is safe to pin in continuous-integration checks and reproducible lesson materials. Each successful request is one billable item at $0.002; failed validation does not consume balance. Choose units consistently—if work is in joules and time is in seconds, power_watts is true SI watts and power_hp is mechanical horsepower. Results are fully deterministic: the same work and time always yield the same power_watts and the same power_hp. Wire the endpoint into mechanics drills, contest answer checkers, machine-sizing worksheets, or preprocessing steps where you already prefer explicit domain errors—such as rejecting zero time—over opaque black-box widgets that cannot explain why a bad input was refused.
Integration use cases
Deterministic fixtures for physics tests
Pipelines that seed unit tests or interactive energy demos can call a pure P=W/t oracle instead of reimplementing power and horsepower conversion in every language.
Technical questions
How do I compute mechanical power with this API?
Send a JSON body with work and time to mech.power. The response returns work, time, power_watts, power_hp, hp_watts, formula, and method.