Percentage Calculator

By: Calculator Grid

Percentage Calculator

Solve four common percentage questions at once with live results, strict input validation, and a verified Excel export.

Percent of value: 30 Ratio: 25.00% Whole: 150 Changed value: 100
Ready to export the startup example as a validated .xlsx workbook.

Inputs

What is p% of x?

Required; decimals and grouped numbers are accepted.

Required plain number; this is the whole amount.

x is what percent of y?

Required; the amount being compared.

Required and cannot be zero.

x is p% of what?

Required; the known portion of the unknown whole.

Required and cannot be zero.

What is x increased or decreased by p%?

Required; the value before the change.

Choose whether the percentage is added or subtracted.

Required; enter zero or a positive percentage.

Live results

p% of x 30 y = x × p ÷ 100
x as a percentage of y 25.00% p = x × 100 ÷ y
Whole when x is p% 150 y = x × 100 ÷ p
Value after percentage change 100 y = x × (100 ± p) ÷ 100
20% of 150 is 30. 45 is 25.00% of 180. 18 is 12% of 150. Increasing 80 by 25% gives 100.

Calculation summary

This table uses the same canonical values as the result cards and the Excel workbook.

Question Formula Current inputs Result
What is p% of x? x × p ÷ 100 150 × 20% 30
x is what percent of y? x × 100 ÷ y 45 ÷ 180 25.00%
x is p% of what? x × 100 ÷ p 18 at 12% 150
Increase x by p% x × (100 + p) ÷ 100 80 increased by 25% 100
Percentages are dimensionless ratios. The plain-number results retain the same unit as their base values, if the values represent money, distance, quantity, or another measurement.

How to use this percentage calculator

What this calculator does

This calculator solves four standard percentage identities: finding a percentage of a number, expressing one number as a percentage of another, recovering a whole from a known part and percentage, and applying a percentage increase or decrease. It is useful for discounts, test scores, budgets, markups, growth comparisons, proportions, and quick checks of spreadsheet formulas. It performs arithmetic identities; it does not decide whether a price, rate, or comparison is appropriate for a particular legal, financial, medical, or statistical decision.

A percent means “per hundred.” The OpenStax explanation of percent as a ratio with denominator 100 provides a detailed foundation for the formulas used here.

When to use it

  • Find a sale amount, tax amount, commission, tip, or score when you know the base value and percentage.
  • Compare a part with a total, such as expenses as a share of a budget or points earned as a share of points available.
  • Recover the original whole when a known amount represents a stated percentage.
  • Apply a percentage change to a price, population, measurement, or other numeric starting value.

How to calculate

  1. The calculator opens with a complete demonstration: 20% of 150, 45 out of 180, 18 as 12% of a whole, and an 80 value increased by 25%. The result cards, summary table, and validated Excel workbook are ready immediately.
  2. Replace the values in the relevant section. Results update as you type. You may use ordinary decimals such as 12.5 and correctly grouped numbers such as 1,250.50. Percentage fields also accept a trailing percent sign.
  3. Read the matching result card and confirm the substituted formula in the Calculation summary table. The four sections are independent, so changing one section does not alter the others.
  4. Select Increase or Decrease for the final calculation, then enter a nonnegative Change percentage (p). A decrease above 100% can produce a negative result, which is mathematically valid even when it may not make practical sense for a particular context.
  5. Select Download Excel to create a fresh workbook from the current validated controls. Reset clears the demonstration and all numeric inputs, returns Change direction to Increase, clears results, and disables the export until every required field contains a complete valid state again.

Input guide

Percentage (p) is the required percentage used in “What is p% of x?” Enter a decimal number, optionally followed by %. For example, 20 means 20%. Higher values scale the result proportionally; negative percentages are allowed for the general identity. Do not enter ambiguous decimal-comma notation such as 1,5.

Base value (x) is the required whole for the first formula. It is a plain number such as 150. The result rises or falls in direct proportion to this value. Do not append a currency or measurement symbol; interpret the output in the same unit as the base.

Part value (x) and Whole value (y) are required for the ratio calculation. For example, 45 divided by 180 equals 25%. Whole value cannot be zero because division by zero is undefined. A negative part or whole is accepted mathematically, but confirm that signed values are meaningful in your context.

Known part (x) and Known percentage (p) recover an unknown whole. In the startup example, 18 is 12% of 150. Known percentage cannot be zero, because no finite whole is determined by saying a nonzero part is 0% of it.

Starting value (x), Change direction, and Change percentage (p) define the final formula. The starting value is required, direction must be Increase or Decrease, and the change percentage must be zero or positive. Increasing 80 by 25% gives 100; decreasing 80 by 25% would give 60.

Output guide

p% of x is the part obtained by multiplying the base by the percentage fraction. x as a percentage of y is a ratio displayed to two decimal places; values above 100% mean the part is larger than the comparison whole. Whole when x is p% is the reconstructed total. Value after percentage change is the starting value multiplied by one plus or minus the percentage fraction. These are exact arithmetic identities before display rounding; the workbook stores the underlying numeric values rather than copied screen text.

The Calculation summary table repeats each question, formula, current substituted inputs, and result. Use it to audit which values drove each answer. A zero result can be correct when the base or percentage is zero. A negative result can be correct when inputs are signed or a decrease exceeds 100%, but it should be interpreted against the real-world quantity being modeled.

Worked example

For the first startup calculation, convert 20% to 0.20 and multiply by 150: 150 × 0.20 = 30. For the ratio, divide 45 by 180 and multiply by 100: 45 ÷ 180 × 100 = 25.00%. To recover the whole, divide 18 by 0.12: 18 ÷ 0.12 = 150. For the increase, multiply 80 by 1.25: 80 × 1.25 = 100. These four values match the first rendered result cards, the table, and the startup workbook checkpoints.

Learn more

For additional worked methods, see OpenStax's general applications of percent. When writing percentages alongside measured quantities, the NIST Guide for the Use of the International System of Units is a useful reference for clear quantity and unit notation.

Percentage formulas and interpretation

The four formulas are rearrangements of one relationship: part = whole × percentage ÷ 100. When the part is unknown, multiply. When the percentage is unknown, divide the part by the whole and scale by 100. When the whole is unknown, divide the part by the percentage written as a decimal. A percentage change uses a multiplier: 1 + p/100 for an increase or 1 – p/100 for a decrease.

Percentage versus percentage points: moving from 20% to 25% is an increase of 5 percentage points, but the relative percentage increase is 25% because 5 is one quarter of the original 20.

Common mistakes

Do not confuse the percentage number with its decimal multiplier: 25% is 0.25 in multiplication. Keep the denominator nonzero when calculating a ratio or recovering a whole. Preserve the direction of a percentage change, especially when reversing a discount: reducing 100 by 20% gives 80, but increasing 80 by 20% gives only 96. Returning from 80 to 100 requires a 25% increase because the comparison base has changed.