Surface area of a triangular prism
Add up all five faces of a triangular prism: a 3-4-5 triangle with height 4 on the side of 3, stretched to a length of 10, gives two ends of 6 each plus 120 of sides, 132 in total. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Side a
- 3
- Side b
- 4
- Side c
- 5
- Base height
- 4
- Length
- 10
- Base area
- 6
- Perimeter
- 12
- Lateral area
- 120
- Surface area
- 132
A right triangular prism is the solid formed when a triangle is extruded along a perpendicular axis, leaving two congruent triangular bases and three rectangular lateral faces. Total surface area is the sum of those five faces: twice the area of the triangular base plus the lateral wrap, which equals the perimeter of the triangle times the prism length. Classroom worksheets almost always give the three sides of the base triangle, the altitude of that triangle measured to one chosen side, and the length of the prism, then ask for the closed identity SA = base × height + (a + b + c) × length. This surface area of a triangular prism calculator accepts those five positive finite dimensions, applies that identity, and returns the total surface area together with the intermediate base area, perimeter, and lateral area so a homework check, packing estimate, or LMS oracle can show the same number a student just computed by hand. No network, no random seed, and no wall clock enter the result.
What triangular prism surface area actually computes
A right triangular prism has two parallel congruent triangular bases joined by three rectangular sides. The two triangular ends contribute twice the area of the base triangle. Each lateral face is a rectangle whose one side is a base edge and whose other side is the prism length, so the three rectangles together have area equal to the perimeter of the triangle times that length.
Adding those parts gives the closed identity total surface area equals two times base area plus perimeter times length. Classic textbook checks appear immediately: a three-four-five right triangle with altitude four to the side of length three, extruded by ten, has base area six, perimeter twelve, lateral area one hundred twenty, and total surface area one hundred thirty-two.
An isosceles base with sides six, five and five and altitude four to the side of length six, extruded by twelve, has base area twelve, perimeter sixteen, and total surface area two hundred sixteen. Units stay consistent: if every length is in centimetres the surface area is in square centimetres; if they are in inches the surface area is in square inches.
This landing does not convert units, does not return volume, and does not recompute the altitude from Heron's formula — you supply the altitude you already measured or were given, and the calculator uses that altitude for the two bases and the three sides for the wrap. Because surface area is a sum of products of independent positive lengths, the arithmetic is one closed form rather than a mesh, a search, or a numerical iteration.
Where this surface area figure helps most
Classrooms and tutoring platforms use a surface area of a triangular prism calculator so learners can verify the school identity SA equals base times height plus perimeter times length without mixing it up with volume or with a rectangular-prism wrap. Sheet-metal, tent, and duct shops convert a triangular cross-section plus run length into square units of wrap, paint, or fabric before ordering material. Packaging and last-mile tools estimate the outer wrap of a triangular prism mailer or a bar of stock.
Construction and interior estimates turn a triangular prism roof volume's cladding, a ramp cheek, or a planter wrap into square metres of finish. Game engines and CAD scripts spawn right triangular prisms from five extents and need the enclosed surface without pulling a full solid-geometry library. Exam generators and LMS plugins need a deterministic oracle that rejects a zero or negative dimension instead of returning a hollow zero that a buggy grader might treat as success.
If you later need volume via Heron from three sides alone, a generic prism from a precomputed perimeter and base area, or a rectangular box, those are different search intents and different landings — this one stays focused on the five-number school formula for total surface area.
What you can do with it
Classroom surface-area checks
Students enter the three base sides, the triangle altitude, and the prism length to verify SA = bh + (a+b+c)l against textbook exercises with a deterministic oracle that rejects non-positive dimensions.
Wrap, paint, and fabric takeoffs
Convert a triangular duct, tent, or mailer into square units of sheet metal, paint, or fabric from the three base edges, the given altitude, and the run length.
CAD and exam oracles
Game, CAD, and LMS scripts spawn a right triangular prism from five extents and need the same total surface the worksheet prints, without a full mesh library.
FAQ
Which side is the base for the triangle height?
The other two sides complete the perimeter of the wrap. Swap labels if your worksheet measures the altitude to a different edge.
Does this calculator return volume as well?
No. This landing returns total surface area (and the intermediate base area, perimeter, and lateral area). Volume is a different search intent.
Why are my three triangle sides rejected?
They have to close a real triangle, so any two sides together must be longer than the third. Sides of 1, 2 and 9 cannot meet, and the calculator refuses them rather than wrapping a base that does not exist.
Does the calculator work out the triangle's height from its sides?
No. You enter the height you measured or were given, measured at a right angle to the first side. It is used for the two triangular ends, while the three sides set the size of the rectangular faces.
What unit is the surface area given in?
The square of the unit you enter. If every length is in centimetres the result is in square centimetres, and in inches it is square inches. Nothing is converted, so keep all five lengths in the same unit.
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/surface-area-of-a-triangular-prism \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"side_a":3,"side_b":4,"side_c":5,"base_height":4,"length":10}'const res = await fetch("https://api.kit.forhosting.com/math/surface-area-of-a-triangular-prism", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"side_a": 3,
"side_b": 4,
"side_c": 5,
"base_height": 4,
"length": 10
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/math/surface-area-of-a-triangular-prism",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"side_a": 3,
"side_b": 4,
"side_c": 5,
"base_height": 4,
"length": 10
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/math/surface-area-of-a-triangular-prism", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"side_a":3,"side_b":4,"side_c":5,"base_height":4,"length":10}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"side_a":3,"side_b":4,"side_c":5,"base_height":4,"length":10}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/math/surface-area-of-a-triangular-prism", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"side_a": 3,
"side_b": 4,
"side_c": 5,
"base_height": 4,
"length": 10
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "math.surface_area_of_a_triangular_prism",
"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
Zero and negative lengths are rejected as invalid_input because a real solid cannot have a non-positive edge; missing or non-finite values fail the same way and are not billed.
What triangular prism surface area actually computes
This landing computes the triangular base area from the school formula one-half times side_a times base_height, where side_a is the side that the given altitude is measured against and the other two sides complete the perimeter. Substituting that area produces the compact product SA equals side_a times base_height plus the sum of the three sides times the prism length.
Input contract, response shape, and error behaviour
The three sides must also satisfy the strict triangle inequality; a one-two-nine triple is not a triangle and is rejected rather than wrapped as if it were a real base. Dimensions that are absurdly small or large for stable floating-point work are rejected rather than returning a nonsense overflow. Failed validation is not billed. POST a JSON body with five required finite numbers. side_a is the triangle side that base_height is perpendicular to and also accepts the aliases a and base. side_b and side_c are the other two sides of the triangular base and accept the aliases b and c. base_height is the altitude of the triangle measured to side_a and accepts triangle_height, h_base, and altitude. length is the prism extrusion, the perpendicular distance between the two triangular bases, and accepts l, prism_length, and depth. Each field may arrive as a JSON number or as a numeric string. Missing fields, empty strings, non-finite values, zero, and negative values fail with invalid_input naming the problem so a degenerate or flipped-sign measurement never looks like a successful surface area. On success the body echoes the five inputs, returns base_area as one-half times side_a times base_height, perimeter as the sum of the three sides, lateral_area as perimeter times length, and surface_area as twice the base area plus the lateral wrap. The formula field restates the identity and method is set to triangular_prism_surface_area so clients can distinguish this landing from a volume or Heron-only calculator. Example: side_a equals three, side_b equals four, side_c equals five, base_height equals four, and length equals ten yields surface area one hundred thirty-two. Pair the structured JSON with your own drawing code if you need a net or a three-dimensional sketch; this endpoint returns numbers only and does not emit SVG, step-by-step prose beyond the field names, or a conversion between square metres and square feet — you supply all five lengths already in one consistent unit and interpret the square result in that same system.
Where a triangular prism surface area API earns its keep
Keep requests small, pin the rounded surface_area in tests, and you get reproducible triangular-prism surface area for homework, edge workers, and design scripts without standing up symbolic math infrastructure of your own.
Technical questions
How do I find the surface area of a triangular prism?
Send positive finite side_a, side_b, side_c, base_height (the altitude to side_a), and length. The API returns surface_area = side_a × base_height + (side_a + side_b + side_c) × length in the square unit that matches those linear edges.
What happens if a dimension is zero or negative?
The task fails with invalid_input. A real triangular prism cannot have a non-positive edge or altitude, so the request is rejected and is not billed.
What does the triangular prism surface area calculator cost?
The browser tool is free. API requests use prepaid balance at $0.002 per successful call; invalid input is not billed.