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

# Logarithm Calculator

`GET /api/calc/logarithm-calculator`

## Request

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

Log calculator for common log (base 10), natural log (ln), log base 2 or any custom base like log₃(81) = 4, with the change-of-base division written out.

## Query parameters

- `x` number: Number (x)
- `base` '10' | 'e' | '2' | 'custom': Base
- `custom` number: Custom base (b)

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