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

# Volume Calculator

`GET /api/calc/volume-calculator`

## Request

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

A 30 × 20 × 10 cm box holds exactly 6 litres. Get the volume of a cube, box, cylinder, sphere, cone or pyramid with its formula, in litres and gallons too.

## Query parameters

- `shape` 'cube' | 'box' | 'cylinder' | 'sphere' | 'cone' | 'pyramid': Shape
- `unit` 'none' | 'mm' | 'cm' | 'm' | 'km' | 'in' | 'ft' | 'yd' | 'mi': Unit
- `x` number: Length
- `y` number: Width
- `z` number: Height

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