Smart Percentage Calculator
Calculate Percentages Accurately and Instantly

What is

%

of

?

is what

%

of

?

%

is

% of what?

What is the percentage change

from

to

?

%

๐ŸŽฏ Application Purpose

This is an interactive percentage calculator built with React, containing 4 main modules:

  • Calculate how much X% of Y is.
  • Find out what percent X is of Y.
  • Determine X is Y% of what value.
  • Calculate percentage change between two values.

๐Ÿ“ฆ Features Structure and Usage

๐Ÿ”ข Module 1: "What is X% of Y?"

For example, if you want to know what 10% of 150 is:

  1. Enter X = 10 in the first input.
  2. Enter Y = 150 in the second input.
  3. Click the Calculate button.
  4. The output will appear in the result area, for example, 15.

Formula used:

result = (percent / 100) * base

๐Ÿงฎ Module 2: "X is what % of Y?"

For example, to find out what percent 15 is of 150:

  1. Enter X = 15 (value to compare).
  2. Enter Y = 150 (total value).
  3. Click Calculate.
  4. The result will show, e.g. 10%.

Formula used:

result = (part / whole) * 100

โ“ Module 3: "X is Y% of what?"

If you know 1000 is 10% of some value, and want to find that value:

  1. Enter X = 1000 (partial value).
  2. Enter Y = 10 (percentage).
  3. Click Calculate.
  4. The result will show the total value, e.g. 10000.

Formula used:

result = (part / percent) * 100

๐Ÿ“‰ Module 4: "Percentage change from A to B?"

To calculate percentage change between two values (e.g., from 100 to 120):

  1. Enter Old value = 100.
  2. Enter New value = 120.
  3. Click Calculate.
  4. The result will be 20% (since it increased by 20 from 100).

Formula used:

result = ((newValue - oldValue) / oldValue) * 100

๐Ÿ•น๏ธ Additional Features

  • โŒจ๏ธ Keyboard Shortcut: Press Enter to calculate math expressions from the top inputs (using mathjs evaluate function).
  • ๐Ÿงพ History: All calculations are saved in the history panel, including manual and percentage module results.
  • ๐Ÿ” Undo/Redo: Logic is prepared for undo/redo stacks (not yet active in UI).

๐Ÿงช Testing Tips

Try these test inputs for each module:

  • Module 1: 25% of 200 โ†’ Result: 50
  • Module 2: 50 of 200 โ†’ Result: 25%
  • Module 3: 50 is 25% of what? โ†’ Result: 200
  • Module 4: from 150 to 180 โ†’ Result: 20%

All-in-One Productivity Tools

Useful Applications

Islamic

Calculator

Math Lesson

Games

Developer Tools