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.
All calculations run locally in the browser with native JavaScript. ToolMint does not upload numeric inputs or calculated results, does not call an API for this tool and does not use AI. The optional currency field is a display label only and does not perform 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. The calculator keeps full numeric precision during the calculation and applies rounding only when formatting the visible result. The thousands-separators option changes display 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. Save locally adds the valid calculation to browser-only history. History contains at most 10 entries and can be restored or cleared.
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 increase is 25. The original value cannot be zero because it is the denominator.
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 decrease is 50. If the new value is greater than the original value, this formula returns a negative decrease, indicating that the selected direction does not match the values.
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...%
Percentage difference is symmetric, so swapping A and B does not change the result. If the average is zero, the percentage difference is undefined. When both values are negative, the signed average can produce a negative percentage-difference result, so interpret that output in the context of the measurements.
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.
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.
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 actual movement when signed values are used. A change from zero to a nonzero value cannot be expressed as a finite percentage because the baseline denominator is zero. A change from zero to zero is reported as no change.
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.
- 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
All calculations run in the current browser tab. ToolMint does not upload, remotely store or log numeric inputs, optional currency labels, formulas or results for this tool.
History is optional. A calculation enters history only when you select Save locally. Saved entries use localStorage in the current browser, are limited to 10 and can be cleared from the tool.
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.
Limitations
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 careful interpretation. Displayed decimals are rounded according to the selected precision, and very large values can lose meaningful precision in ordinary JavaScript number arithmetic. ToolMint limits inputs to finite values between negative and positive one quadrillion.
Frequently Asked Questions
How do I calculate a percentage of a number?
Multiply the number by the percentage divided by 100. For example, 15 percent of 200 is (15 / 100) x 200, which equals 30.
How do I calculate percentage increase?
Subtract the original value from the new value, divide by the original value and multiply by 100. The original value cannot be zero.
How do I calculate percentage decrease?
Subtract the new value from the original value, divide by the original value and multiply by 100. The original value cannot be zero.
What is the difference between percentage change and percentage difference?
Percentage change uses a starting value as the baseline. Percentage difference compares two values symmetrically when neither is treated as the baseline.
How do I reverse a percentage increase?
Divide the final value by 1 plus the percentage expressed as a decimal. A final value of 125 after a 25 percent increase has an original value of 100.
How do I calculate the original price before a discount?
Use the reverse-decrease mode and divide the final price by 1 minus the discount expressed as a decimal. The discount must be less than 100 percent.
What is the difference between markup and profit margin?
Markup divides profit by cost, while profit margin divides profit by selling price. A 25 percent markup on a cost of 80 produces a selling price of 100 and a 20 percent margin.
Can percentages be greater than 100?
Yes. General percentage, increase, add and subtract modes can use percentages above 100 when the calculation is meaningful. Discount inputs are limited to 100 percent.
Can I calculate percentages with negative values?
Yes, where the selected formula remains mathematically defined. Interpret signed baselines carefully because negative starting values can make everyday increase or decrease labels less intuitive.
Does ToolMint store my calculations?
ToolMint does not upload or remotely store calculations. History is saved only in localStorage when you select Save locally, and you can clear it at any time.
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.