Average velocity calculator
Moving 100 metres in 20 seconds is an average velocity of 5 m/s, or 18 km/h: enter the total displacement and the time, and the calculator gives both units plus the sign that shows the direction. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Displacement
- 100
- Time
- 20
- Average velocity mps
- 5
- Average velocity kmh
- 18
- Magnitude mps
- 5
- Magnitude kmh
- 18
Average velocity is the total displacement of a body divided by the total time interval over which that displacement occurred. Unlike average speed, which cares only about path length, average velocity keeps the signed straight-line change of position, so a round trip that ends where it started has zero average velocity even when the odometer is large. The defining relation is simply v average equals delta x over delta t. When displacement is measured in metres and time in seconds, the result is metres per second; multiplying by three point six converts to kilometres per hour for road and transport contexts. Students, coaches, logistics planners, and engineers use this one-line formula constantly for homework checks, lap analysis, and first-pass trip estimates. This calculator accepts total displacement and total time, returns average velocity in both m/s and km/h, reports magnitude and sign, and rejects zero time with a clear validation error instead of producing infinity.
How average velocity is defined and computed
Begin with a one-dimensional position axis and choose a positive direction. Displacement delta x is the final position minus the initial position; it is a signed scalar, not the path length. Elapsed time delta t is the duration of the interval and must be nonzero.
Average velocity is defined as delta x divided by delta t. That single quotient is the constant velocity a body would need to produce the same net change of position in the same time, regardless of whether the real motion sped up, slowed down, or reversed. When displacement is zero, average velocity is zero even if the body travelled a long path and returned.
When displacement is negative, average velocity is negative, signalling net motion opposite the chosen positive axis. Converting metres per second to kilometres per hour multiplies by three point six because one kilometre is one thousand metres and one hour is three thousand six hundred seconds. Both fields must be finite; NaN and Infinity are rejected.
The special case of zero or vanishingly small time is rejected with invalid input because division by zero is undefined and would not represent a physical average over an interval.
What you send and what you get back
Send two required finite numbers under the fields displacement and time. Displacement is total delta x in metres or any consistent length unit; zero and negative values are allowed. Time is total elapsed duration in seconds or any consistent time unit and must be nonzero.
Classic textbook checks include one hundred metres in twenty seconds for five metres per second or eighteen kilometres per hour, a negative displacement for reverse motion, and zero displacement for a closed path. Wire the free browser form for homework and quick sanity checks, then call the identical contract from scripts when you need bulk answer keys or logistics tables.
Where average velocity calculators show up in real work
Secondary-school and introductory university physics courses assign displacement-over-time drills, compare average velocity with average speed, and require signed results on a number line; a single trusted oracle speeds grading and demo setup. Sports science and coaching staff convert split times and stage displacements into mean velocities for pacing tables without re-deriving unit conversions each session. Logistics and fleet planners estimate corridor mean speeds from odometer-style net progress and scheduled duration as a first filter before full traffic models.
Robotics and control labs report mean command velocities along a rail or conveyor from encoder delta position and cycle time. If you later need instantaneous velocity from derivatives, multi-segment path integrals for average speed only, constant-acceleration kinematics, or terminal velocity under drag, treat those as separate search intents and landings rather than overloading this average velocity calculator page.
What you can do with it
Homework and lab answer keys
Compute signed average velocity from total displacement and time so students and auto-graders share one closed-form ground truth in m/s and km/h.
Sports pacing and split analysis
Turn stage displacements and split times into mean velocities for training plans without manual unit conversion mistakes.
Trip and logistics mean-speed estimates
Estimate corridor average velocity from net progress and scheduled duration before full traffic or routing models.
FAQ
What formula does this average velocity calculator use?
The result is reported in metres per second and converted to kilometres per hour by multiplying by 3.6.
What happens if time is zero?
Average velocity is undefined when the time interval is zero because that would divide displacement by zero.
Is average velocity the same as average speed?
No. Average speed uses path length (always non-negative) over time. Average velocity uses signed displacement over time, so a round trip can have large average speed and zero average velocity.
Can displacement be negative?
Yes. Negative displacement means net motion opposite your chosen positive direction, and the returned average velocity is negative in both m/s and km/h.
What does it cost?
The browser tool is free and runs locally.
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/average-velocity \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"displacement":100,"time":20}'const res = await fetch("https://api.kit.forhosting.com/mech/average-velocity", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"displacement": 100,
"time": 20
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/mech/average-velocity",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"displacement": 100,
"time": 20
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/mech/average-velocity", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"displacement":100,"time":20}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"displacement":100,"time":20}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/mech/average-velocity", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"displacement": 100,
"time": 20
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "mech.average_velocity",
"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
How average velocity is defined and computed
The entire pipeline is deterministic floating-point arithmetic: no random seeds, no wall-clock timestamps, no network calls, and no model drift, so identical inputs always produce identical JSON.
What you send and what you get back
Missing fields, non-numeric strings, NaN, and Infinity fail with invalid_input and are not charged. When time is zero or extremely close to zero the request fails with a message that average velocity is displacement divided by time and zero time is undefined, so clients can fix clocks or intervals rather than guessing. On success the response echoes cleaned inputs, average_velocity_mps as the primary SI result, average_velocity_kmh as the road-unit conversion, magnitude_mps and magnitude_kmh as absolute values for tables that drop the sign, direction as positive, negative, or zero, a units hint object, method set to average_velocity_displacement_over_time, and a short formula string for display. Pricing for successful API calls is the published base of $0.002 per item; validation failures do not consume prepaid balance.
Where average velocity 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.