Trapezoid height calculator
A trapezoid with an area of 50 and bases of 8 and 12 is 5 high. Enter the area and both parallel sides and get the height, worked out as twice the area divided by the sum of the bases. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Area
- 50
- Base a
- 8
- Base b
- 12
- Midsegment
- 10
- Height
- 5
A trapezoid, called a trapezium in British usage, is a quadrilateral with exactly one pair of parallel sides. Those parallel sides are the bases; the perpendicular distance between them is the height. When the enclosed area and both base lengths are already known, the height is not a new measurement — it is the unique rearrangement of the textbook area identity: height equals twice the area divided by the sum of the two bases. This trapezoid height calculator accepts a positive finite area and two positive finite base lengths, then returns that perpendicular height together with the midsegment used in the intermediate step. There are no network calls, no random sampling, and no date dependence on the numbers you provide.
How trapezoid height is recovered from area and two bases
The standard area of a trapezoid is the product of the midsegment and the perpendicular height. The midsegment, also called the median or the midline, is the average of the two parallel bases, so the area identity is written A equals (a plus b) over two, times h. Solving that identity for the unknown height is a single rearrangement: multiply both sides by two and divide by the sum of the bases, which yields h equals two A divided by (a plus b).
Equivalently, first form the midsegment m equals (a plus b) over two, then divide the given area by m. Those two writings are algebraically identical; this calculator uses the two-A-over-sum form and also reports the midsegment so a worksheet can show both steps.
Classic checks include area fifty with bases eight and twelve, which yield height five because twice fifty is one hundred and the bases sum to twenty; area twenty with bases three point five and six point five, which yield height four; and equal bases of six with area thirty, which collapse the figure to a rectangle of width six and recover height five. Swapping which base is labeled first does not change the sum, so the height is unchanged.
Because the path uses only addition, multiplication, and a single division, it is deterministic, constant time, and free of iterative solvers. The closed form matches every elementary geometry textbook and keeps automated graders aligned with hand computation on the same three numbers.
Where trapezoid height calculations show up in real work
Secondary-school and college geometry courses constantly ask students to find the height of a trapezoid given the area and the two bases, often after the forward area problem has already been practiced. That search is not the same as a trapezoid-area landing: learners who type trapezoid height already have A, a, and b and want the unknown perpendicular, not another midsegment worksheet that assumes h is known.
Construction, civil, and landscape workflows often inherit area from a takeoff sheet or a cadastral record while the two parallel extents are measured on site; recovering height then sizes formwork, retaining-wall rise, ramp elevation, and soil volume once a length into the page is applied downstream. Architecture and interior design tools review stepped floor plates, stadium seating sections, and terrace outlines whose area is specified by code or by a finish schedule; height is the missing storey or riser dimension.
Game, graphics, and computer-aided design libraries store trapezoidal collision proxies and UI panels whose area is constrained by layout; deterministic height supports packing heuristics without a full computational-geometry stack. If you later need the forward area from bases and height, the perimeter of four sides, the area of a right trapezoid specifically, or unit conversion between metres and feet, treat those as separate search intents rather than overloading this trapezoid-height landing.
What you can do with it
Homework and exam checks
Recover trapezoid height from area and two bases, and reject zero or negative dimensions with a clear error.
Site surveys and material takeoffs
From a known plot area and two measured parallel extents, recover the perpendicular rise for ramps, walls, and beds.
Layout and CAD proxies
Turn a constrained area and two parallel extents into height for panels, seating sections, and trapezoidal sprites.
FAQ
How do I find the height of a trapezoid from its area?
Send three positive finite numbers: the area and the two parallel bases.
What is the midsegment and why is it in the response?
The midsegment (median, midline) is the average of the two bases. Height equals area divided by that midsegment. Returning it lets a worksheet show the intermediate step next to the final height.
Why are zero and negative area or bases rejected?
An area or base that is not strictly positive is not a geometric dimension of a drawable trapezoid.
Does the order of the two bases change the height?
Labeling is a convenience, not a geometric constraint.
What if both bases of the trapezoid are equal?
Then the shape is a rectangle and the formula still works. Equal bases of 6 with an area of 30 give a height of 5, exactly the width-times-height result you would expect from a rectangle.
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/math/trapezoid-height \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"area":50,"base_a":8,"base_b":12}'const res = await fetch("https://api.kit.forhosting.com/math/trapezoid-height", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"area": 50,
"base_a": 8,
"base_b": 12
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/math/trapezoid-height",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"area": 50,
"base_a": 8,
"base_b": 12
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/math/trapezoid-height", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"area":50,"base_a":8,"base_b":12}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"area":50,"base_a":8,"base_b":12}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/math/trapezoid-height", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"area": 50,
"base_a": 8,
"base_b": 12
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "math.trapezoid_height",
"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
Students checking homework, landscape designers recovering rise from a surveyed plot, civil estimators reconstructing an elevation from a takeoff sheet, and automated graders that need a deterministic inverse of the area formula all get the same pure result in the free browser tool and the API. Any area or base that is missing, not finite, or not strictly positive is rejected with invalid_input instead of a silent nonsense height.
How trapezoid height is recovered from area and two bases
Huge magnitudes can still overflow the IEEE-754 double range; when the quotient is not finite the request fails with a clear message instead of returning Infinity in JSON. The response echoes both bases, the given area, the midsegment, the computed height, and a short formula string so logs, worksheets, and teaching interfaces can document the algorithm without re-deriving it.
What you send and what you get back
The strictly positive gate is intentional: a zero area or a zero base would describe a collapsed segment, not a trapezoid you can draw on a worksheet, so those inputs fail by name rather than returning a zero or infinite height that a buggy grader might treat as success. Example checks: area fifty with bases eight and twelve yields height five and midsegment ten; area twenty with bases three point five and six point five yields height four; an area of zero or minus three fails naming the field. Wire the free browser tool for quick sanity checks, then call the identical contract from scripts for bulk evaluation without reimplementing the product in every language. Invalid input is not charged, so exploratory validation in continuous integration stays cheap while production calls remain predictable. Provide three required positive finite numbers: area is the enclosed surface of the trapezoid, base_a is one parallel side, and base_b is the other parallel side. Missing fields, empty strings, non-numeric text, NaN, Infinity, zero, and any negative dimension are rejected with invalid_input and are not charged. On success the JSON response returns area, base_a, base_b, midsegment, height, and formula set to the two-A-over-sum identity so logs and teaching interfaces can document the algorithm. Numeric strings and integers are accepted the same way as JSON numbers. API pricing is the published base of $0.002 per successful item.
Where trapezoid height calculations show up in real work
Because this capability is a pure parse engine, failed validation does not consume balance and successful runs stay at $0.002 per item.
Technical questions
What does the trapezoid height calculator cost?
The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.