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

# Ratio Calculator

`GET /api/calc/ratio-calculator`

## Request

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

Solve A:B = C:D for the missing value or reduce a ratio to lowest terms – 1920:1080 becomes 16:9. Handy for recipes, screen sizes, map scales and mixes.

## Query parameters

- `mode` 'solve' | 'simplify': Calculation
- `a` number: A
- `b` number: B
- `c` number: C
- `d` number: D

## 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)
