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

# Fraction Calculator

`GET /api/calc/fraction-calculator`

## Request

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

Type 1/2 + 3/4 or 2 3/8 ÷ 1 1/4 and get the answer in lowest terms, as a mixed number and as a decimal, with the common-denominator steps written out.

## Query parameters

- `a` string: First fraction
- `op` 'add' | 'sub' | 'mul' | 'div': Operation
- `b` string: Second fraction

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