Percentage Calculator
calculate percentages, percentage changes, and ratios
By Bikram NathLast updated
Entering a base value and a percent returns the calculated portion instantly: type 340 and 15 to get 51, plus a reverse confirmation that 51 is 12% of 340 as a cross-check. Multiple modes cover percentage-of, signed percentage change, and ratio-to-percent conversion in one session. That removes the three separate RapidTables lookups most developers make when debugging a discount or commission formula mid-code.
Interactive Percentage Calculator — coming soon
We're still building the interactive Percentage Calculator. The guide below explains exactly what it does and how to use it. In the meantime, here are DevLab tools that already work in your browser:
Browse all working tools →What is Percentage Calculator?
The calculator accepts two numbers and a mode, then returns the result alongside the inverse relationship. In percentage-of mode, entering 850 and 12 yields 102 and confirms that 102 is 12% of 850. Percentage-change mode takes a before and after value and returns the signed delta, so 200 to 170 reports -15% rather than 15%.
Developers reach for this when sanity-checking a formula mid-code without switching to a Python REPL or a WolframAlpha query. RapidTables covers similar ground but splits the three calculation types across separate pages, which breaks focus. For anything beyond a quick spot-check, a short Python script or a named-cell spreadsheet keeps a reusable and auditable record.
IEEE 754 doubles surface here the same way they do everywhere in JavaScript: 1 divided by 3 times 100 gives 33.333333333333336%, not 33.33%. The display rounds for readability, but copying the raw value into another system expecting a clean decimal carries those trailing digits along. Rounding explicitly to the required precision before passing a percentage to a database DECIMAL column or an API payload is the caller's responsibility, not the tool's.