---
title: "Triangle Calculator"
method: GET
path: "/api/calc/triangle-calculator"
tags: ["Math"]
---

# Triangle Calculator

`GET /api/calc/triangle-calculator`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/triangle-calculator`
- Auth: none declared

Know three parts of a triangle? Get the other three, plus area, perimeter, type and a scale drawing. SSS, SAS, ASA, AAS and the SSA ambiguous case all work.

## Query parameters

- `mode` 'sss' | 'sas' | 'asa' | 'aas' | 'ssa': What do you know?
- `a` number: Side a
- `b` number: Side b
- `c` number: Side c
- `angA` number: Angle A (°)
- `angB` number: Angle B (°)
- `angC` number: Angle C (between a and b) (°)

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
