The ToolMint Percentage Calculator calculates common percentage relationships from numbers you enter. It supports percentage-of-number questions, part-to-total percentages, increases, decreases, differences, reverse percentages, sequential discounts, markup, profit margin and directional percentage change.
This free tool needs no account. Calculations run locally in the browser with native JavaScript; the calculator does not send values to a calculation API or use AI. Optional history saves in this browser only when you choose Save locally. Currency symbols and codes are display labels, not currency conversion.
How to Use the Percentage Calculator
Choose the calculation mode that matches your question. Enter each required value, then review the primary result, supporting values, formula, substituted calculation and plain-language explanation.
Use Decimal precision to display between zero and four decimal places. Calculations retain the precision available to JavaScript numbers; display rounding does not change the stored numeric result. A small nonzero result may display as 0.00 at two decimal places. The formula and substituted calculation retain small values using scientific notation when needed. Thousands separators affect output formatting only.
For discount, markup and profit-margin modes, you can add an optional currency symbol or code. Enter all monetary values in the same currency because ToolMint does not apply exchange rates.
Use Copy result for the primary answer or Copy calculation for the result, supporting values, formula and explanation. Copy writes the selected text to your clipboard. If clipboard access fails, select the visible calculation and copy it manually.
Save locally adds a valid calculation to browser history, with at most 10 unique entries. Select an entry to restore its inputs. Reset clears current inputs and restores display defaults while keeping the selected mode and saved history; Clear history removes the saved entries. A blocked, full or unreadable storage area produces a message rather than claiming a successful save or removal.
Accepted number formats
Use a dot as the decimal separator. Commas must group thousands in sets of three; the tool does not interpret comma decimals or currency text in numeric fields.
| Input | Interpretation |
|---|---|
1500.25 or 1,500.25 |
One thousand five hundred and one quarter |
-12.5 or +.5 |
Signed decimal values |
1.5e3 |
Scientific notation for 1500 |
1,5, 12,34, AED 100, 20% |
Invalid; enter the number without a currency or percent suffix |
Numeric inputs are limited to an absolute value of one quadrillion (1e15). Non-finite numbers and nonzero inputs too small for JavaScript to represent are rejected.
What Is X Percent of Y?
To calculate a percentage of a number, divide the percentage by 100 and multiply by the number:
result = (percentage / 100) x number
For 15 percent of 200:
(15 / 100) x 200 = 30
This mode is useful for finding a tax amount, a share of a total, a commission amount or any other fraction expressed as a percentage.
X Is What Percentage of Y?
To express a part as a percentage of a total, divide the part by the total and multiply by 100:
percentage = (part / total) x 100
For 30 out of 200:
(30 / 200) x 100 = 15%
The total cannot be zero because division by zero is undefined.
Percentage Increase
Percentage increase uses the original value as the baseline:
percentage increase = ((new value - original value) / original value) x 100
An increase from 100 to 125 is:
((125 - 100) / 100) x 100 = 25%
The absolute difference is 25. The original value cannot be zero because it is the denominator. This mode uses the signed original value; a negative original value can reverse the percentage sign. For direction relative to a negative starting value, use Percentage change between values instead.
Percentage Decrease
Percentage decrease also uses the original value as the baseline:
percentage decrease = ((original value - new value) / original value) x 100
A decrease from 200 to 150 is:
((200 - 150) / 200) x 100 = 25%
The absolute difference is 50. With a positive original value, a higher new value returns a negative decrease. This mode divides by the signed original value; use Percentage change between values when you need direction relative to a negative baseline.
Percentage Difference
Percentage difference is useful when neither value should be treated as the baseline. It compares the absolute difference with the average:
percentage difference = |A - B| / ((A + B) / 2) x 100
For 80 and 100:
|80 - 100| / ((80 + 100) / 2) x 100
= 20 / 90 x 100
= 22.222...%
This tool uses the signed-average convention shown in the formula. Swapping A and B leaves the result unchanged. A zero average is undefined. A negative average produces a negative result: -80 and -100 give approximately -22.22%. Other comparison conventions may use absolute magnitudes or restrict inputs to positive values; identify the convention before comparing reports.
Percentage Increase vs Percentage Difference
Percentage increase and percentage difference are not interchangeable.
Use percentage increase, decrease or change when one value is clearly the starting baseline. A move from an original price to a new price is a percentage change.
Use percentage difference when comparing two measurements without assigning either one as the original. The denominator is based on their average rather than one selected value.
Find the Original Value Before an Increase
To reverse a percentage increase, divide the final value by one plus the percentage as a decimal:
original = final / (1 + percentage / 100)
If the final value is 125 after a 25 percent increase:
125 / (1 + 25 / 100) = 100
The verification is 100 plus 25 percent of 100, which equals 125.
Find the Original Value Before a Decrease
To reverse a percentage decrease, divide the final value by one minus the percentage as a decimal:
original = final / (1 - percentage / 100)
If the final value is 80 after a 20 percent decrease:
80 / (1 - 20 / 100) = 100
The percentage decrease must be at least zero and less than 100. A 100 percent decrease leaves zero, so the final value alone cannot identify a unique original value.
Add or Subtract a Percentage
To add a percentage:
new value = value x (1 + percentage / 100)
Adding 15 percent to 200 gives:
200 x (1 + 15 / 100) = 230
To subtract a percentage:
new value = value x (1 - percentage / 100)
Subtracting 15 percent from 200 gives:
200 x (1 - 15 / 100) = 170
A decrease and an equal increase do not cancel because the second percentage uses a different baseline. Reducing 100 by 50 percent gives 50. Increasing 50 by 50 percent gives 75, not 100.
Discount Calculator
The discount mode calculates the first discount amount, optional additional discount, final price, total saving and effective discount percentage.
A single 20 percent discount on 100 gives:
discount amount = 100 x 20 / 100 = 20
final price = 100 - 20 = 80
Additional discounts are sequential. A 20 percent discount followed by a 10 percent discount is:
100 x (1 - 20 / 100) x (1 - 10 / 100)
= 100 x 0.8 x 0.9
= 72
The final price is 72, not 70. The effective discount is 28 percent because the second discount applies to 80 rather than the original 100. If the original price is zero, monetary results remain zero and the effective discount percentage is shown as undefined.
Markup vs Profit Margin
Markup and profit margin both describe profit, but they use different denominators.
Markup divides profit by cost:
markup = profit / cost x 100
Profit margin divides profit by selling price:
margin = profit / selling price x 100
With a cost of 80 and a 25 percent markup:
selling price = 80 x (1 + 25 / 100) = 100
profit = 100 - 80 = 20
margin = 20 / 100 x 100 = 20%
A 25 percent markup therefore produces a 20 percent profit margin in this example. Treating them as identical can lead to incorrect pricing. Markup mode requires positive cost and a rate greater than -100%, keeping selling price positive. Negative rates above -100% represent a loss. Margin mode permits zero cost, but shows the corresponding markup as undefined because its cost denominator would be zero.
Percentage Change Between Two Values
The percentage-change mode determines whether the ending value is an increase, decrease or no change from the starting value:
percentage change = (ending - starting) / |starting| x 100
The calculator uses the magnitude of the starting value so the direction follows the movement when signed values are used. Moving from -100 to -50 is an increase of 50 relative to a starting magnitude of 100: this mode labels it Increase, 50%. The separate signed-baseline increase mode gives -50%; these are different conventions.
A zero starting value does not define a relative percentage. Zero to a nonzero value produces a validation message. Zero to zero reports No absolute change, with an explanation that the relative percentage remains undefined; it does not present 0 / 0 as 0%.
Negative Values and Decimals
The calculator accepts finite negative and decimal values where the selected formula is defined. Negative starting values can make everyday increase and decrease language less intuitive, so interpret the signed baseline and direction carefully.
Business modes apply practical constraints. Prices and costs cannot be negative where that would make the result misleading, discount percentages are limited to zero through 100, and selling price must be greater than zero for profit-margin calculations.
JavaScript uses binary floating-point arithmetic. Some decimal fractions cannot be represented exactly internally, so ToolMint formats the visible answer to the selected decimal precision. Display rounding does not change the underlying formula.
Zero Denominators
The calculator does not divide by zero. It shows an actionable validation message when:
- A total is zero in the part-to-total percentage mode.
- An original value is zero in percentage increase or decrease.
- The average is zero in percentage difference.
- A reverse percentage would require division by zero.
- A nonzero ending value is compared with a zero starting value; zero to zero is handled as absolute equality without a defined percentage.
- Cost or selling price makes markup or margin undefined.
An undefined percentage is different from zero percent. Zero percent is a valid result when the formula is defined and no change occurred.
Practical Uses
Use the calculator to:
- Find a percentage share of a total.
- Compare an original and updated measurement.
- Reverse a known increase or discount.
- Check sale prices and sequential discounts.
- Convert markup to the resulting profit margin.
- Add a percentage-based fee or subtract a percentage allowance.
- Prepare transparent calculations for a report or planning note.
For a simple return-on-investment ratio, use the ROI Calculator. For mortgage payment scenarios, use the Mortgage Calculator. Property-specific yield and cash-flow calculations belong in the Property Investment Calculator, while longer-term housing comparisons belong in the Rent vs Buy Calculator.
Common Percentage Mistakes
Do not divide by the new value when the original value is the baseline. Do not add sequential discounts together. Do not treat markup and margin as the same ratio. Do not assume an equal decrease and increase return to the original value.
Also avoid rounding each intermediate step when accuracy matters. Keep sufficient precision during the calculation and round the final displayed value according to the reporting requirement.
Privacy and Local Processing
Calculation values stay in the current browser. The calculator does not upload numeric inputs, currency labels, formulas or results to a calculation server. The interactive tool is masked for session recordings, and its analytics events include action categories and mode names rather than numeric values.
History is optional. Save locally stores selected inputs in localStorage for this site and browser. Saved entries can persist across visits until you clear history or the browser removes site data. Other people using the same browser profile may be able to restore them. The tool keeps at most 10 unique valid entries, ignores malformed saved entries and does not rewrite history merely because the page was opened.
Analytics may record privacy-safe actions such as mode changed, example loaded, values swapped, reset, result copied, calculation copied or history cleared. Analytics do not include numeric values, currency labels, formulas, saved entries or calculated results.
Calculation Limits and Precision
The Percentage Calculator provides deterministic arithmetic based on the selected formula and values entered. It does not verify source figures, interpret contracts, apply tax rules, convert currencies or provide financial, tax, accounting, pricing or investment advice.
Results involving negative baselines require the convention stated for the selected mode. JavaScript uses binary floating-point numbers, so this is not an arbitrary-precision or accounting-decimal calculator. Displayed decimals are rounded; very large or very small values can lose precision during arithmetic. Inputs are limited to finite values between negative and positive one quadrillion, and calculations that produce non-finite primary or supporting results are rejected. Use an appropriate decimal accounting system where exact monetary precision is required.
Related Tools
Use the ROI Calculator for simple return-on-investment calculations, the Mortgage Calculator for payment and amortization estimates, the Property Investment Calculator for rental yield and cash flow, the Rent vs Buy Calculator for housing-cost comparisons and the Invoice Generator for itemized billing. Browse more browser-based utilities in the Utilities category.
For business-return comparisons beyond ordinary percentage arithmetic, read ROI vs ROAS: Formula, Examples, and When to Use Each.
Sources and Calculation Method
The worked examples were checked against the calculator's formulas and automated regression cases. The signed-average difference and starting-magnitude change conventions are tool-specific choices described above, rather than universal definitions for every context.
- U.S. Bureau of Labor Statistics: Calculating percent changes explains using the earlier value as the baseline for positive index values.
- MDN: Number describes JavaScript numeric representation and precision limits.
- MDN: localStorage describes browser persistence and possible storage-access errors.
Sources checked and guide meaningfully updated on 7 October 2026.