inyourbrowser.com

Percentage calculator

Percentage calculator is a calculator tool that solves the three most common percentage problems. It computes X% of Y, finds what percent X is of Y, and measures percentage change between two values, showing the formula alongside the result. The tool runs in your browser.

Enter both numbers to see the result
–

How to calculate a percentage

  1. Choose the calculation type, percentage of a number, percentage change, or what percentage one number is of another.
  2. Enter the values into the appropriate fields.
  3. The result updates instantly as you type.
  4. Click “Copy result” to copy the result to your clipboard.

Common uses

Technical specification

  • Algorithm or formula: Three modes of pure arithmetic. X% of Y: (X/100) * Y. X is what % of Y: (X/Y) * 100. Percentage change from A to B: ((B - A)/|A|) * 100, shown with the absolute change B - A.
  • Browser API or library: Pure JavaScript Number arithmetic; no external library.
  • Input limits: Any IEEE 754 double-precision float; effective range roughly ±1.8e308 with ~15 significant digits of precision.
  • Output: Numeric result displayed alongside the calculation formula, rounded to 4 decimal places and at most 15 significant digits (values below 0.0001 keep 4 significant figures, values of 10^15 or more use exponential notation). Copyable to clipboard.
  • Known limitations: When the divisor is zero (“X is what % of Y” with Y = 0, or “% change” from 0), the tool shows “Cannot divide by zero” and no percentage. Standard floating-point rounding applies to repeating decimals.

Frequently asked questions

How do you calculate a percentage of a number?
Divide the percentage by 100 and multiply by the number: 15% of 200 is (15 / 100) × 200 = 30. The calculator also finds what percent one number is of another and the percentage change between two values, and shows the formula under every result.
Is my data sent to a server?
All calculations run entirely in your browser using JavaScript. Our servers are not involved at any point.
Can I calculate VAT or sales tax?
Yes. Use the percentage of a number calculator, enter the pre-tax amount and the tax rate to get the tax amount, then add it to the original for the total.
How do I calculate a percentage decrease?
Use the percentage change calculator. If the new value is less than the original, the result will be negative, showing the percentage decrease.

Related tools

Discount calculator
Calculate sale price and savings from a percent-off discount. Handles single or stacked discounts.
Tip calculator
Calculate tip amount, total per person, and split a bill between up to 20 guests.
Fraction calculator
Add, subtract, multiply, divide, and simplify fractions. Shows step-by-step working.
Mortgage calculator
Calculate monthly mortgage payments, total interest, and amortization schedule. Standard formula, runs in your browser.
ROI calculator
Calculate return on investment and annualized ROI. For investments, marketing spend, or any cost-vs-gain analysis.

Reviewed and tested September 30, 2026.