Percentage Calculator

Calculate percentages, changes, discounts, markup and margin with visible formulas. Copy results or explicitly save browser-only history. No signup.

Percentage Calculator

Calculate common percentages with transparent formulas.

Browser-only

Calculation inputs

Choose a mode, enter values and review the instant result.

Use a dot for decimals and commas only for thousands, such as 1,500. Scientific notation is supported.

Formula: result = (percentage / 100) x number

Display options

Result and explanation

Results update when all required values are valid.

Enter values to calculate

Choose a mode and add valid numbers to see the formula, substituted calculation and explanation.

Mode: Percentage of a number. Display rounding does not change the full-precision internal calculation.

All calculations run locally in your browser. ToolMint does not upload input values or calculated results, and analytics record only privacy-safe actions and mode names.

Steps

How to use

  1. Choose the percentage calculation mode that matches the question you need to answer.
  2. Enter the required values and, for business modes, optionally add a display-only currency symbol or code.
  3. Choose a decimal precision and whether to use thousands separators.
  4. Review the instant primary result, supporting values, formula, substituted calculation and explanation.
  5. Copy the result, copy the complete calculation or explicitly save a valid calculation in browser-only history.
Examples and use cases
  • Calculate 15 percent of 200 to get 30.
  • Find that 30 is 15 percent of 200.
  • Measure a change from 100 to 125 as a 25 percent increase.
  • Apply sequential discounts of 20 percent and 10 percent to 100 to get 72, not 70.
  • Compare a 25 percent markup with the resulting 20 percent profit margin when cost is 80 and selling price is 100.
Privacy, limits and tool details

Key facts

Best use case
Checking common percentages, changes, reverse percentages, discounts, markup and profit margin with visible formulas
Calculation modes
13 deterministic modes covering general, comparison, reverse and business percentages
Number support
Decimals, signs, grouped thousands and scientific notation; absolute input values up to one quadrillion
Display precision
Choose 0, 1, 2, 3 or 4 decimal places without changing full-precision internal calculations
Currency handling
Optional symbol or code for discount, markup and margin display only; no currency conversion
Recent history
Up to 10 unique valid calculations saved explicitly in this browser; Reset retains history and Clear history removes it
Processing method
Native deterministic JavaScript calculations run entirely in the browser; no AI or API route is used
Privacy model
Inputs and results stay in the browser; analytics exclude all numeric values and calculated results
Account requirement
Free to use with no signup required
Main limitation
Results depend on the selected formula and entered values and are not financial, tax or accounting advice
Privacy

Privacy and processing

Processing method: All percentage calculations run locally in the browser with native deterministic JavaScript. The tool uses the numeric precision available to JavaScript, applies the selected display precision only when formatting results and never calls a ToolMint API route or external service.

Privacy model: This calculator is browser-only. Numeric inputs, optional currency labels, formulas and calculated results are not uploaded to ToolMint servers and are not included in analytics. Selected inputs are saved to localStorage only when the user selects Save locally; tool content is masked for session recordings.

Limitations

Limitations

  • The calculator does not provide financial, tax, accounting, pricing or investment advice.
  • Binary floating-point arithmetic can have tiny internal representation differences, so results are formatted to the selected decimal precision.
  • Relative percentage change from a zero baseline is undefined. Zero to zero reports no absolute change without assigning a percentage.
  • Percentage difference and percentage change answer different questions and should not be used interchangeably.
  • Currency symbols and codes affect display only; ToolMint does not convert currencies or apply exchange rates.
  • Signed-baseline increase/decrease, signed-average difference and starting-magnitude change use different conventions for negative values.

Page freshness

Published
Jul 27, 2026
Last updated
Oct 07, 2026
Features

Benefits

Thirteen focused modes

Use the formula that matches the question instead of adapting one generic percentage field.

Transparent calculations

Every valid result includes the formula, substituted values and a concise explanation.

Controlled formatting

Set decimal precision and thousands separators without changing internal calculation precision.

Browser-only privacy

Calculations stay on the device and analytics never include numeric inputs or results.

Tips

Pro tips

  • Use percentage change when one value is the baseline and percentage difference when neither value is the baseline.
  • Apply multiple discounts sequentially to the remaining price rather than adding the percentages.
  • Keep full precision during intermediate work and round only the displayed or final reported result.
  • Treat currency as a label and enter all monetary figures in the same currency.
  • Check whether a negative value or zero baseline is meaningful for the question before interpreting the result.
Watch out

Common mistakes to avoid

  • Dividing by the new value instead of the original value when calculating percentage change.
  • Adding sequential discount percentages instead of applying each discount to the remaining price.
  • Treating markup on cost as though it were the same percentage as margin on selling price.
  • Assuming a 50 percent decrease followed by a 50 percent increase returns to the starting value.
  • Using percentage difference when one value should clearly be treated as the baseline.

Sources

Detailed Percentage Calculator guide

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.

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.

Sources checked and guide meaningfully updated on 7 October 2026.

Frequently asked questions

Multiply the number by the percentage divided by 100. For example, 15 percent of 200 is (15 / 100) x 200, which equals 30.

Subtract the original value from the new value, divide by the original value and multiply by 100. The original value cannot be zero.

Subtract the new value from the original value, divide by the original value and multiply by 100. The original value cannot be zero.

Change uses a starting value; this tool divides by its magnitude to label direction for signed values. Difference is symmetric and divides the absolute difference by the signed average. A negative average therefore gives a negative difference percentage.

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.

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.

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.

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.

Yes, in modes that permit them. Increase and decrease divide by the signed original value; change divides by its magnitude. Difference uses a signed average. Discount prices and margin costs cannot be negative; markup requires positive cost and a rate greater than -100%.

The calculator does not upload calculations. Save locally explicitly stores selected inputs in this browser for this site, with up to 10 unique valid entries. Reset retains them; Clear history removes them. If storage access fails, the tool reports the failure.

A zero starting value does not define a relative percentage. Zero to a nonzero value is rejected. Zero to zero reports no absolute change and explains that the relative percentage remains undefined.

Use a dot for decimals and commas only for grouped thousands, such as 1,500.25. Scientific notation such as 1.5e3 is accepted. Comma decimals, malformed grouping, hexadecimal numbers, percent suffixes and currency text in numeric fields are rejected.

The visible result is rounded to the selected zero to four decimal places. A small nonzero result can therefore display as zero; its substituted calculation retains the available numeric precision, using scientific notation when needed. JavaScript arithmetic itself has finite precision.
11 min read Works in browser Privacy notes