A percentage calculator works by selecting the relationship you need, entering two numbers, and applying the matching formula as you type.
That is the complete workflow of the Percentage Calculator. It handles three different questions: finding a percentage of a number, expressing one value as a percentage of another, and comparing a starting value with a new value. Its answer and worked formula appear directly below the inputs.
The key is to choose the mode by the relationship between your values, not merely by the word “percent.” A discount amount, a score out of a total, and a price increase all use different starting information and therefore different formulas.

What each calculation mode does
Each mode relabels the two fields and applies one defined formula. Use the following table to match your question to the correct mode before entering numbers.
| Mode | Question it answers | Formula | How to interpret it |
|---|---|---|---|
| X% of Y | How much is a percentage of a number? | (X ÷ 100) × Y | The result is the percentage portion of Y. |
| X is what % of Y | What percentage of a total is one value? | (X ÷ Y) × 100 | X is the part and Y is the total used as the denominator. |
| % change | How much did a value increase or decrease? | (new − old) ÷ old × 100 | The result is measured against the starting value. |
In “X% of Y,” X is the rate and Y is the base amount. Dividing X by 100 turns it into a decimal multiplier before the multiplication. The output is the portion represented by that percentage, which makes this mode suitable for finding a discount amount, a tip, tax, a commission, or interest for one period.
In “X is what % of Y,” X is the part and Y is the total being compared against it. The percentage is not typed in; it is calculated by dividing the part by the whole and multiplying by 100. This is the appropriate mode for a test score, budget spending, completion progress, or any other part-to-total comparison.
For “% change,” the fields represent the starting value and the new value. The calculation compares them against the starting value. A positive result means growth, a negative result means decline, and equal values give no change. Because the baseline matters, reversing the direction of a change does not normally reverse the percentage by the same amount.
Calculate a percentage in three steps
- Select the matching mode. Choose “X% of Y” for a portion of one number, “X is what % of Y” for a part compared with a total, or “% change” for a starting value and a new value.
- Enter the two values. Type into the two fields. Their labels update after the mode changes, so check which value is the rate, part, starting value, or total. Negative numbers are accepted wherever they make sense.
- Read the answer and formula. The result and worked formula update instantly below the fields as you type. There is no button to press, and you can use the displayed formula to confirm the calculation.
Because the formula stays visible, this workflow supports two kinds of checking. You can verify that the values went into the intended fields, and you can see whether the calculator interpreted the question as finding a portion, forming a proportion, or measuring change.
Every calculation runs in your browser, and nothing is sent to a server. The inputs are therefore processed locally rather than submitted for a remote calculation.
See how “X% of Y” is calculated
Percent means “per hundred,” so the calculator first converts the percentage to a decimal and then multiplies it by the base number. A single worked example shows the full sequence:
Formula: (X ÷ 100) × Y
Substituted values: (15 ÷ 100) × 200
Result: 30
This output is the percentage portion of the original number. Use it when you need the amount of a discount, tip, tax, commission, or one-period interest. If the goal is the amount remaining after a discount, subtract the calculated portion from the original amount; the calculator’s direct answer in this mode is the portion, not the reduced price.
Negative values follow the same formula where they make sense. The sign remains part of the displayed result rather than being discarded, allowing the answer to represent a negative amount or direction as appropriate.
Find what percentage one number is of another
Use “X is what % of Y” when you already have both raw quantities but do not yet have a percentage. Put the part in X and the whole in Y. The calculator applies (X ÷ Y) × 100 and displays both the percentage and its worked formula.
Field order is essential because it decides what acts as the denominator. If a value is meant to be the total, enter it in Y; if it is the amount achieved or used, enter it in X. This distinction matters for scores, allocation shares, survey results, and budget progress.
The second number cannot be zero. If Y is zero, the calculator shows a clear error because X ÷ 0 has no defined percentage. It does not substitute a misleading zero or another arbitrary denominator.
Negative values are accepted where they make sense, and the echoed formula makes the direction of the relationship easy to inspect.
Measure percentage increase or decrease
Use “% change” to compare a starting value with a new value. The formula is (new − old) ÷ old × 100. The old value is the baseline because the size of the change is being judged relative to where the measurement began.
A positive answer represents an increase, a negative answer represents a decrease, and identical starting and new values produce 0%. This mode is useful for price movement, salary changes, traffic growth, investment returns, or any before-and-after metric.
Order matters because the first value is the denominator. A rise and a fall covering the same amount of units can have different percentage magnitudes when they are measured from different starting values. Reading the displayed formula makes that baseline choice explicit.
If the starting value is zero, percentage change is undefined and the calculator shows a clear message rather than a misleading result. Entering the new value first would use the wrong baseline, so check the labels before interpreting the sign.
Input rules, errors, and result handling
The supported workflow is deliberately narrow: choose one of the three modes, enter the two values that mode requires, and read the live answer.
- Labels follow the mode. The fields are renamed when you switch modes, helping you confirm what each number represents before calculating.
- Negative inputs are supported where meaningful. The calculator does not reject negative numbers simply because they are negative; it applies the selected formula to the values supplied.
- Zero denominators are guarded. A zero total in the what-percent mode and a zero starting value in the change mode both lead to a clear error message.
- Display rounding is cosmetic. Results are rounded for a clean display while remaining accurate to full precision, so trailing floating-point noise is not displayed.
- Processing happens in the browser. Every calculation runs locally and nothing is sent to a server.
These rules make the tool predictable: it handles a complete two-value relationship in one of three defined ways and identifies the two cases in which the required denominator is undefined.
Check your result before using it
A final check is easier when you name each number before entering it. For a portion, identify the rate and base. For a part-to-total question, identify the part and whole. For a change, identify the starting point and new reading.
- Confirm the mode. Make sure the selected operation matches the question you intended to ask.
- Confirm the order. Check which field contains the rate, part, total, or starting value.
- Interpret the sign. In change mode, a positive result is growth and a negative result is decline.
- Read the formula. The displayed working shows the values and operation used, making a misplaced input easier to spot.
- Identify what the output represents. A percentage portion is not automatically a final price, and a percentage change is measured from its starting value rather than from the new value.
Most percentage errors come from using the wrong base, reversing the inputs, or treating a percentage portion as the final amount. The live worked formula gives you a direct way to catch those issues before relying on the number.
Related reading: Digits of Pi Formula: Exact Methods and Outputs.
Related reading: Convert Text to Number Formula in Salesforce.