ForHosting KIT · Developer Utilities

Isosceles triangle from leg and apex angle calculator

This isosceles triangle calculator starts with the length of either equal leg and the angle where those legs meet.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

It returns the base length, both equal base angles, the perpendicular height, and the enclosed area. The calculation splits the triangle into two congruent right triangles, making the half-angle relationships direct and easy to audit. Enter lengths in any consistent unit; the returned lengths use that unit and the area uses its square.

Turn the isosceles triangle into two right triangles

An isosceles triangle has two equal legs, and the apex angle lies between them. Draw the altitude from the apex to the base. In this particular triangle, that altitude is also a median and an angle bisector, so it divides the original shape into two congruent right triangles. Each right triangle has the supplied leg length as its hypotenuse, half of the apex angle at the top, half of the unknown base along the bottom, and the unknown height as the other perpendicular side. This construction is the key to the whole calculation. If the equal leg is L and the apex angle is A degrees, the half-angle is A/2. The half-base is L times sin(A/2), while the height is L times cos(A/2). Doubling the half-base gives the complete base. Because every step follows a right-triangle relation, the result does not depend on a diagram being drawn to scale, and no iterative approximation or ambiguous triangle case is involved.

How every returned measurement is calculated

The calculator first converts half of the apex angle from degrees to radians for the trigonometric functions. It computes the full base as 2L sin(A/2) and the height as L cos(A/2). The two base angles are equal because the legs are equal, and the interior angles of a triangle sum to 180 degrees. Therefore each base angle is (180 − A)/2. Finally, the area is one half times the complete base times the perpendicular height. This is equivalent to one half L squared times sin(A), but using the already calculated base and height keeps the returned values internally connected. Results are rounded only to a stable floating-point precision, not to a fixed number of decimal places. The leg, base, and height all share the unit you choose. If the leg is entered in centimeters, those three lengths are centimeters and the area is square centimeters. The angles are always returned in degrees.

Choose valid inputs and interpret extreme shapes

Use a finite leg length greater than zero and an apex angle strictly between 0 and 180 degrees. The endpoints are excluded because they collapse the triangle: at zero degrees the legs overlap, while at 180 degrees the height becomes zero and the sides form a straight segment. Angles very close to either endpoint are mathematically valid but describe very thin triangles. Near zero degrees, the base and area become small while the height approaches the leg length. Near 180 degrees, the base approaches twice the leg length while the height and area approach zero. These behaviors are useful checks when reviewing a result. The calculator does not attach or convert physical units, so all lengths must be interpreted consistently. Do not enter one leg in meters and expect a base in centimeters. For construction or manufacturing, retain enough digits for the required tolerance and apply project-specific rounding only after the geometric result has been calculated. The API price is $0.002 per calculation.

Lay out a symmetric roof section

Derive the span and rise from a known rafter length and the included ridge angle.

Check a triangular component

Calculate the base, height, and area of a symmetric part from two measurements available on a drawing.

Verify geometry homework

Compare a half-angle solution with independently calculated base angles and area.

Which side is the leg length?

It is the length of either of the two equal sides that meet at the apex. It is not the base.

Where is the apex angle?

The apex angle is the included angle between the two equal legs, opposite the base.

What units should I use?

Use any consistent length unit. The base and height use the same unit, and the area uses the corresponding square unit.

Why must the apex angle be between 0 and 180 degrees?

An endpoint would make the triangle degenerate, with overlapping legs or zero height, rather than a triangle with positive area.

How much does the API calculation cost?

Each API calculation costs $0.002. The browser version can run the same deterministic calculation locally.

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.

POSThttps://api.kit.forhosting.com/trig/isosceles-triangle-from-apex

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.

curl -X POST https://api.kit.forhosting.com/trig/isosceles-triangle-from-apex \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"leg_length":10,"apex_angle_degrees":60}'
{
  "leg_length": 10,
  "apex_angle_degrees": 60
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "trig.isosceles_triangle_from_apex",
  "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.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →