Skip to content
%PercentScope
ChangeDiscountMarginWord problemsReverse %All tools
PercentScope information

How Our Calculations Work

PercentScope uses arithmetic formulas implemented in TypeScript and evaluated in your browser. This page explains what the results mean and provides reference cases you can reproduce.

Choose the formula for your question

  • Percentage of a value: P ÷ 100 × value.
  • Part as a percentage of a whole: part ÷ whole × 100.
  • Percentage change: (new − old) ÷ |old| × 100. The absolute-value denominator is our convention for signed inputs.
  • Percentage difference: |A − B| ÷ ((|A| + |B|) ÷ 2) × 100. For nonnegative inputs, the denominator is their ordinary average.
  • Percentage points: new rate − old rate. One percentage point equals 100 basis points.

Reference inputs and expected answers

Examples checked against the calculator math functions
QuestionExpected answer
20% of 45090
Change from 120 to 165+37.5%
Difference between 80 and 100Approximately 22.22%
Cost $70, target margin 30%Selling price $100
Two $50 items, 10% off, $5 coupon, 8% tax estimate$91.80
Rate falls from 8% to 6%−2 points; −200 basis points; −25% relative change

Undefined and unusual inputs

Division by zero is undefined. A zero starting value cannot produce a defined relative percentage change; a zero selling price cannot produce a defined margin. We show undefined rather than invent a percentage. Negative-value conventions are explained on the relevant pages because results can be misleading when used without context.

Discounts and business costs

The discount calculator applies quantity, successive percentage discounts, one fixed basket coupon and then a tax estimate. The margin calculator uses the entered cost and selling price. The full-profit tab of the margin calculator includes only entered per-unit costs; it does not automatically account for tax, returns or fixed overhead.

Precision and rounding

Calculations use JavaScript numbers, which use binary floating-point arithmetic. Intermediate amounts are not deliberately rounded at each step; displayed values are formatted for readability and selected currency. Values such as 0.1 cannot always be represented exactly. Use your accounting system’s required rounding policy for final records; rounded calculator displays are estimates.

Testing and corrections

Automated formula tests cover ordinary inputs and edge cases. Browser checks exercise the calculator forms, examples and key interactions. These checks are not a guarantee against every defect. Bilal Arif maintains the software; report a suspected error with the inputs and expected answer so it can be reproduced.

%PercentScope

Fast, clear percentage, discount, margin and pricing calculators. No account required.

Calculations run in your browser. Results are for informational and planning purposes.

Popular tools

Percentage changeDiscount calculatorMargin & markupSales tax / VAT / GSTSalary increaseMarks percentage

Percent tools

Reverse percentagePercentage differenceChained percentagesBulk calculatorPercent to fraction

Guides

Percentage word problemsPercentage chartHow calculations work

Site

AboutContactPrivacyTermsDisclaimerAdvertising policy
© 2026 PercentScopehttps://percentscope.com