---
title: "Pace Calculator"
method: GET
path: "/api/calc/pace-calculator"
tags: ["Health"]
---

# Pace Calculator

`GET /api/calc/pace-calculator`

## Request

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

10 km in 50 minutes is 5:00 per km or 8:03 per mile. Get running pace and speed from any distance and time, or your finish time for a 5K to a marathon.

## Query parameters

- `mode` 'pace' | 'time': Calculate
- `preset` '5k' | '10k' | 'half' | 'marathon' | 'custom': Distance
- `distance` number: Custom distance
- `distUnit` 'km' | 'mi': Unit
- `h` number: Time (h)
- `m` number: (min)
- `s` number: (s)
- `pm` number: Pace (min)
- `ps` number: (s)
- `paceUnit` 'km' | 'mi': Per

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