Percentage calculator

Calculate percentages: A% of B or what percentage A is of B.

{{ percentageCalc.message }}

Overview

The word percent comes from the Italian per cento and the Romans already used fractions of 100 to calculate interest and taxes. The percent symbol as we know it today emerged in Italian manuscripts of the 17th century, evolving from abbreviations like p cento to its current graphic form. Luca Pacioli, the Franciscan mathematician who systematized double-entry bookkeeping in 1494 — often called the father of accounting — relied heavily on percentage calculations for balance sheets, interest computations, and the division of profits among business partners. Since then, percentage has become the universal language of comparative measurement.

The most common trap with percentages is confusing relative change with percentage points — and this confusion is actively exploited in financial marketing. If an interest rate rises 1%, it could mean going from 5% to 5.05% (a 1% relative increase) or from 5% to 6% (an increase of 1 percentage point). The difference seems small but represents 20% more in borrowing costs. Another classic: 50% off and then another 50% off is not 100% off — it is 75% off. And a price that increased 20% and then decreased 20% does not return to the original: you end up at 96% of the starting value.

In programming, percentages appear in progress bars, discount systems, tax calculations, performance metrics, and financial formulas. The most important technical consideration is floating point precision. In JavaScript, `0.1 + 0.2` is not exactly `0.3` — it is `0.30000000000000004`. For any financial calculation involving percentages, use integer arithmetic (work in cents rather than dollars) or a precision library like decimal.js. Round only at the very last step, never in the middle of a calculation chain — each intermediate rounding accumulates error.

Technical deep dive

Common questions summarized

  • What is this tool for?: It runs fully in your browser: useful to validate, format, or convert data in everyday development.
  • Are my inputs sent to a server?: Processing happens locally with JavaScript. We do not store what you paste into the text areas.
  • Can I use this for real production data?: Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.

Sample payload to try

  • See also the larger "Code Snippets" sample; paste this excerpt to try locally: Example — 10% de 200 = 20 20 representa 10% de 200

Code Snippets

Code example
10% de 200 = 20
20 representa 10% de 200

Example

10% de 200 = 20
20 representa 10% de 200

FAQ

What is this tool for?

It runs fully in your browser: useful to validate, format, or convert data in everyday development.

Are my inputs sent to a server?

Processing happens locally with JavaScript. We do not store what you paste into the text areas.

Can I use this for real production data?

Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.