Midsegment of a triangle calculator
A triangle midsegment joins the midpoints of two sides. The Triangle Midsegment Theorem says that this segment is parallel to the third side and exactly half as long.
Run — free
This calculator applies that relationship directly: enter the length of the side parallel to the midsegment, and it returns the midsegment length. It is useful for geometry homework, construction diagrams, scale drawings, and any calculation where the parallel side is known but the interior midpoint segment is not.
Identify the side parallel to the midsegment
Start by locating the segment that joins the midpoints of two sides of the triangle. That interior segment is the midsegment. It will be parallel to the one remaining side, sometimes called the base in a diagram. The length you enter is the length of that parallel outer side, not either of the two sides whose midpoints are joined. Labels and orientation do not matter: the triangle may point up, down, or sideways, and the relevant side may have any name. What matters is the parallel relationship. If a diagram marks two points as midpoints and draws a segment between them, look across the triangle for the side running in the same direction. Measure or read that side length and submit it as the parallel side length. Use one consistent unit, such as centimeters, inches, meters, or an abstract geometry unit. The result uses that same unit because the calculation is a simple length ratio and performs no unit conversion.
Apply the Triangle Midsegment Theorem
The Triangle Midsegment Theorem provides two facts: the midpoint-joining segment is parallel to the third side, and its length is one half of that side. This calculator uses the second fact through the formula midsegment length = parallel side length / 2. For example, a parallel side measuring 18 units gives a midsegment measuring 9 units. A side measuring 7.5 centimeters gives a midsegment measuring 3.75 centimeters. Decimal values are accepted, so the known side does not need to be an even whole number. The input must be a positive finite number because an actual triangle side cannot have zero or negative length, and values such as infinity do not describe a measurable segment. No angles, heights, areas, or other side lengths are required. The theorem already fixes the scale factor, so providing extra triangle measurements would not change the answer. The returned formula makes the calculation explicit and easy to include in written work or to verify independently.
Interpret and check the result
Read the returned midsegment length in the same unit used for the parallel side. If you entered 24 millimeters, a returned value of 12 means 12 millimeters; if the diagram uses feet, the result is in feet. A quick reasonableness check is that the answer must be positive and smaller than the supplied side, specifically exactly half its length. Doubling the result should reproduce the original parallel side. If that check fails in handwritten work, confirm that you selected the third side rather than one of the sides containing a marked midpoint, and confirm that the interior segment truly connects two midpoints. The one-half rule does not apply merely because two segments look parallel in an imprecise sketch; the endpoint midpoint condition is essential. Conversely, when the midpoint markings are present, the result does not depend on whether the triangle is acute, right, obtuse, isosceles, or scalene. The same theorem and calculator apply to every nondegenerate triangle, making the output suitable for proofs, worksheets, design checks, and programmatic validation.
What you can do with it
Solve a geometry exercise
Find the missing interior segment when a worksheet gives the length of the parallel third side.
Check a scale drawing
Verify that a segment joining two side midpoints is drawn at half the length of its parallel side.
Validate construction dimensions
Compute a midpoint brace or reference segment from a known triangular frame side using the theorem's fixed ratio.
FAQ
What is a triangle midsegment?
It is a segment joining the midpoints of two sides of a triangle. It is parallel to the third side and half as long.
Which side length should I enter?
Enter the length of the outer triangle side that is parallel to the midsegment.
What formula does the calculator use?
It uses midsegment length = parallel side length / 2.
Can I enter a decimal side length?
Yes. Any positive finite number is accepted, including decimal values.
What units does the result use?
The result uses the same unit as the input. The calculator applies a ratio and does not convert units.
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/midsegment-of-a-triangle \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"parallel_side_length":18}'const res = await fetch("https://api.kit.forhosting.com/math/midsegment-of-a-triangle", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"parallel_side_length": 18
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/math/midsegment-of-a-triangle",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"parallel_side_length": 18
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/math/midsegment-of-a-triangle", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"parallel_side_length":18}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"parallel_side_length":18}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/math/midsegment-of-a-triangle", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"parallel_side_length": 18
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "math.midsegment_of_a_triangle",
"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. |