Meet Your New Percentage Calculator

Find the percentage

% of

Calculate the percentage change

to

Calculate percentage of total

is what percentage of

This tool makes math a breeze. It’s a simple percentage calculator anyone can use. No math degree required, just basic number sense and a click or two.

Simplify Your Calculations

Calculating percentages can sometimes feel like a drag. Our calculator breaks it down into three straightforward tasks. Need a percentage of a number? Want to see the percentage change between two figures? Or curious about what portion one number is of another? You got it covered.

Easy-to-Use Features

First, enter the percent you want from a given number. Second, calculate the percentage change from one value to another. Third, find out what percent one number is of a total. It’s as simple as mixing water and juice.

Step-by-Step Instructions

Fill out the input boxes with your numbers. Press the corresponding button for a quick result. The calculator displays the answer right away without any fuss. Simple actions lead to clear outcomes.

Short and snappy steps make it even more fun. Sometimes, less is more. Ever thought math could feel this smooth? Now you can see numbers in a whole new light.

Real-World Benefits

Whether you’re managing a budget, working on a school project, or just curious about percentages, this calculator is the go-to tool. It handles tasks fast and gives you clean, accurate results. One glance is all it takes.

Your Tool in Action

Below is the tool’s code snippet. Check out how everything fits together:


<main>
  <h1>Percentage Calculator</h1>
  <div>
    <div>
      <h2>Find the percentage</h2>
      <input type="number" id="percent" placeholder="What percentage?" step="any">
      <span>% of</span>
      <input type="number" id="number" placeholder="What number?" step="any">
      <button onclick="calculatePercentage()">Calculate</button>
      <p id="percentResult"></p>
    </div>
    <div>
      <h2>Calculate the percentage change</h2>
      <input type="number" id="from" placeholder="From" step="any">
      <span>to</span>
      <input type="number" id="to" placeholder="To" step="any">
      <button onclick="calculateChange()">Calculate</button>
      <p id="changeResult"></p>
    </div>
    <div>
      <h2>Calculate percentage of total</h2>
      <input type="number" id="part" placeholder="Part" step="any">
      <span>is what percentage of</span>
      <input type="number" id="total" placeholder="Total" step="any">
      <button onclick="calculatePartOfTotal()">Calculate</button>
      <p id="totalResult"></p>
    </div>
  </div>
</main>
<script>
  function calculatePercentage() {
    const percent = parseFloat(document.getElementById("percent").value);
    const number = parseFloat(document.getElementById("number").value);
    if (isNaN(percent) || isNaN(number)) {
      document.getElementById("percentResult").textContent = "Please enter valid numbers";
      return;
    }
    const result = (percent / 100) * number;
    document.getElementById("percentResult").textContent = `${percent}% of ${number} = ${result}`;
  }
  function calculateChange() {
    const from = parseFloat(document.getElementById("from").value);
    const to = parseFloat(document.getElementById("to").value);
    if (isNaN(from) || isNaN(to)) {
      document.getElementById("changeResult").textContent = "Please enter valid numbers";
      return;
    }
    if (from === 0) {
      document.getElementById("changeResult").textContent = "Starting value cannot be zero";
      return;
    }
    const change = ((to - from) / from) * 100;
    document.getElementById("changeResult").textContent = `The percentage change is ${change.toFixed(2)}%`;
  }
  function calculatePartOfTotal() {
    const part = parseFloat(document.getElementById("part").value);
    const total = parseFloat(document.getElementById("total").value);
    if (isNaN(part) || isNaN(total)) {
      document.getElementById("totalResult").textContent = "Please enter valid numbers";
      return;
    }
    if (total === 0) {
      document.getElementById("totalResult").textContent = "Total cannot be zero";
      return;
    }
    const percentage = (part / total) * 100;
    document.getElementById("totalResult").textContent = `${part} is ${percentage.toFixed(2)}% of ${total}`;
  }
</script>

Simple, Fast, and Fun

Got a question? Ever think math feels like a puzzle missing one piece? This calculator fills that gap effortlessly. It does the heavy lifting so you can focus on other things.

Give the percentage calculator a spin. Plug in your numbers and watch the magic happen. It’s a handy tool you’ll appreciate every time you need clear, quick math.