# Percentage calculator > How much is that in per cent? Percent of a number, what percent one number is of another, percentage change and difference, and the number before a discount. Work out a percent of a number, what percent one number is of another, the percentage change or difference, or the price before a discount, with the formula. - Page: https://how.box/percentage/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/percentage/?m={m}&p={p}&a={a}&b={b}&d={d} - `m` (of, ratio, change, difference, reverse or before): Calculation: of, ratio, change, difference, reverse or before. Example: `of`. - `p` (number 0 to 1e6): The percentage (20 for 20 %), used by of, reverse and before. Example: `20`. - `a` (number -1e12 to 1e12): First number; its meaning follows m. Example: `150`. - `b` (number -1e12 to 1e12): Second number (ratio, change, difference). Example: `120`. - `d` (decrease or increase): For m=before: decrease or increase. Example: `decrease`. Example answer: https://how.box/percentage/?m=of&p=20&a=150&b=120&d=decrease A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `percentage_calculate`: Percentage calculations, one per mode: of (percent % of a = percent ÷ 100 × a), ratio (a as a percentage of b = a ÷ b × 100), change (percentage change from old a to new b = (b − a) ÷ |a| × 100; negative is a decrease), difference (symmetric percentage difference = |a − b| ÷ ((|a| + |b|) ÷ 2) × 100, relative to the average), reverse (the whole of which a is percent % = a ÷ percent × 100), before (the value before a percent % decrease or increase, direction, that gave a = a ÷ (100 ∓ percent) × 100). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"percentage_calculate","arguments":{"mode":"of","percent":20,"a":150,"b":120,"direction":"decrease"}}}` - GET: https://how.box/mcp/run/percentage_calculate?mode=of&percent=20&a=150&b=120&direction=decrease ## How it works Per cent means “out of a hundred”: 20% is 20/100, or 0.2. So 20% of 150 is 20 ÷ 100 × 150 = 30, and 30 is 30 ÷ 150 × 100 = 20% of 150. Working backwards, if 30 is 20% of a number, the number is 30 ÷ 20 × 100 = 150. A percentage change compares a new value B with an old value A: (B − A) ÷ |A| × 100. From 3 to 4 is an increase of 33⅓%, but from 4 back to 3 is a decrease of 25%, because each change is measured against its own starting point. A change from zero has no percentage. When neither value is the starting point, the percentage difference measures the gap against their average: |A − B| ÷ ((|A| + |B|) ÷ 2) × 100. 100 and 120 differ by 20 ÷ 110 × 100 ≈ 18.18%, whichever way round you enter them. Other definitions exist (some divide by the larger value), so say which one you used. A price after a 20% discount is 80% of the original, so the original is the price ÷ 80 × 100. Adding back 20% of the reduced price does not get you there. A change in a rate, such as 3% to 4%, is 1 percentage point but a 33⅓% increase. Formulas follow Wikipedia’s “Relative change” article. ## FAQ **How do I find a percentage of a number?** Divide the percentage by 100 and multiply by the number. 15% of 80 is 0.15 × 80 = 12. **Why isn’t a 20% rise undone by a 20% fall?** Each percentage is taken of a different number. 100 plus 20% is 120, and 20% of 120 is 24, so a 20% fall leaves 96. **How do I find the price before a discount?** Divide the sale price by what remains after the discount. €80 after 20% off was €80 ÷ 0.8 = €100. **What is the difference between percentage change and percentage difference?** A change has a direction, from an old value to a new one, and is measured against the old value. A difference has no direction and is measured against the average of the two. **Are two 10% rises the same as one 20% rise?** No, they make 21%. The second rise is taken of the already raised value: 100 becomes 110, then 121. Three 10% rises make 33.1%, not 30%. **What is a percentage point?** The plain difference between two percentages. An interest rate going from 3% to 4% rises by 1 percentage point, which is a 33⅓% increase in the rate. **What percent is one number of another?** Divide the part by the whole and multiply by 100: 30 out of 250 is 30 ÷ 250 × 100 = 12%. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)