Solve for any missing variable in a percentage relationship.
Find the Part (Given Base and Rate)
Find the Base (Given Part and Rate)
Find the Rate (Given Part and Base)
Enter values to see results
Understanding Part, Base, and Rate
In mathematics, percentage problems typically involve three primary components. Understanding how these interact is essential for basic algebra, finance, and data analysis.
The Base (B): This represents the whole or the total amount (100%). It is the number you are taking a percentage of.
The Rate (R): This is the ratio or percentage. It indicates how many parts per hundred are being considered.
The Part (P): This is the specific portion of the base determined by the rate.
The Mathematical Formulas
Depending on which variable is unknown, you use one of the following variations of the percentage formula:
1. Find Part: Part = Base × (Rate / 100)
2. Find Base: Base = Part / (Rate / 100)
3. Find Rate: Rate = (Part / Base) × 100
Practical Examples
Example 1: Finding the Part
If you have a total of 500 units (Base) and you want to find out what 15% (Rate) of that total is, the Part is 75.
Example 2: Finding the Rate
If a student scores 40 points (Part) out of a possible 50 points (Base), the student's Rate is 80%.
Example 3: Finding the Base
If you know that 20 units (Part) is exactly 10% (Rate) of a larger collection, the total collection (Base) consists of 200 units.
function updateFields() {
var mode = document.getElementById('calcMode').value;
var baseRow = document.getElementById('baseRow');
var rateRow = document.getElementById('rateRow');
var partRow = document.getElementById('partRow');
// Reset visibility
baseRow.style.display = "block";
rateRow.style.display = "block";
partRow.style.display = "block";
if (mode === 'part') {
partRow.style.display = "none";
} else if (mode === 'base') {
baseRow.style.display = "none";
} else if (mode === 'rate') {
rateRow.style.display = "none";
}
document.getElementById('pbrResult').innerHTML = "Enter values to see results";
}
function calculatePBR() {
var mode = document.getElementById('calcMode').value;
var b = parseFloat(document.getElementById('baseInput').value);
var r = parseFloat(document.getElementById('rateInput').value);
var p = parseFloat(document.getElementById('partInput').value);
var resultDiv = document.getElementById('pbrResult');
var finalVal = 0;
if (mode === 'part') {
if (isNaN(b) || isNaN(r)) {
resultDiv.innerHTML = "Error: Please enter Base and Rate.";
return;
}
finalVal = b * (r / 100);
resultDiv.innerHTML = "The Part is: " + finalVal.toLocaleString(undefined, {minimumFractionDigits: 0, maximumFractionDigits: 4});
}
else if (mode === 'base') {
if (isNaN(p) || isNaN(r)) {
resultDiv.innerHTML = "Error: Please enter Part and Rate.";
return;
}
if (r === 0) {
resultDiv.innerHTML = "Error: Rate cannot be zero.";
return;
}
finalVal = p / (r / 100);
resultDiv.innerHTML = "The Base is: " + finalVal.toLocaleString(undefined, {minimumFractionDigits: 0, maximumFractionDigits: 4});
}
else if (mode === 'rate') {
if (isNaN(p) || isNaN(b)) {
resultDiv.innerHTML = "Error: Please enter Part and Base.";
return;
}
if (b === 0) {
resultDiv.innerHTML = "Error: Base cannot be zero.";
return;
}
finalVal = (p / b) * 100;
resultDiv.innerHTML = "The Rate is: " + finalVal.toLocaleString(undefined, {minimumFractionDigits: 0, maximumFractionDigits: 4}) + "%";
}
}