---
title: "LCM & GCD Calculator"
method: GET
path: "/api/calc/lcm-gcd-calculator"
tags: ["Math"]
---

# LCM & GCD Calculator

`GET /api/calc/lcm-gcd-calculator`

## Request

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

For 12, 18 and 30 the GCD is 6 and the LCM is 180. Get both for up to 20 whole numbers, with each prime factorization shown – GCF and HCF are the same thing.

## Query parameters

- `numbers` string: Whole numbers 2 to 20 positive whole numbers, separated by commas or spaces.

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