# Percentage calculator

> Three percentage calculations in one: X% of a number, what percent one number is of another, and the percent change between two values.

Free tool by Orkosi. Page: https://orkosi.com/tools/percentage-calculator

A discount, a growth figure, a share of a total: three questions, one calculator, with the answer written out as a sentence.

1. Choose the question you are asking.
2. Enter the two numbers.
3. Press Calculate and read the answer.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `mode` | "of" \| "is-what-percent" \| "change" | no | Question. Default: "of". |
| `a` | number | yes | A. |
| `b` | number | yes | B. |

## Example

Input:

```json
{
  "mode": "change",
  "a": 80,
  "b": 100
}
```

Result:

```json
{
  "result": 25,
  "explanation": "From 80 to 100 is an increase of 25%."
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "percentage-calculator", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/percentage-calculator/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"mode":"change","a":80,"b":100}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**How do I calculate percent change?**

Subtract the old value from the new one, divide by the old value and multiply by 100. From 80 to 100 is an increase of 25%.

**Why is a 50% drop not undone by a 50% rise?**

Because the base changes. 100 minus 50% is 50; 50 plus 50% is only 75. Recovering from a 50% drop takes a 100% rise.

**What is a percentage point?**

The plain difference between two percentages. A rate that goes from 4% to 5% rose by one percentage point, which is a 25% increase.

All free tools: https://orkosi.com/tools.md
