TL;DR: Percentage = part ÷ whole × 100. The whole is the reference set named in the sentence, not whichever number is larger, not 100 by default, not last problem’s total. If you cannot name the whole in words, you are not ready to divide.

The whole is a set, not a vibe

“12 of the 40 children” has children as the set. “12 of the 40 kilograms” is a different set. Same digits, different objects. If the sentence has no set, you cannot percent. “12 of 40” on a worksheet implies the worksheet’s objects. Copy them into your line: 12 children / 40 children.

Larger numbers are not automatically wholes. 40 can be the part if the question is “40 is what percent of 12,” a legally ugly question whose answer is about 333%. Ugly does not mean you swap to make it pretty.

When the part is not a subset

If 12 apples are compared to 40 oranges, 12/40 is a ratio of counts, not a percent of a combined fruit bowl. A percent of a bowl would need 12/(12+40) if you meant share of fruit. The formula will compute 30% either way if you feed 12 and 40. Only one of those 30%s matches a given English sentence. Draw the bowl or refuse the bowl.

Parts that exceed the whole (50/40) yield 125%. Allowed when “part” is not a subset (150% of a recipe). Not allowed when counting children in a room of 40. Then 50 is a data error. The formula does not know rooms. You do.

Units cancel or the percent is fake

12 meters / 40 meters is 30%. 12 meters / 40 seconds is 0.3 meters per second, a rate, not a percent. Putting a % sign on a rate is how science fair posters get laughed at. Convert to the same unit first if you meant a percent of a length.

Currency: $12/$40 = 30%. $12 / 40 items is dollars per item. Again a rate. The slash is not magic. The matching units are.

100 as a fake whole

Test scores out of 80 should not be divided by 100 unless you first scaled. 72/80 = 90%, which is the same as scaling to 90/100. Dividing 72/100 because “percent means 100” skips the 80. That 72% is a different, wrong test.

Spreadsheets that format 0.3 as 30% are assuming the number is already a fraction of one. Typing 30 into a percent-formatted cell can become 3000%. The formula part/whole × 100 is the human version. The cell format is a display version. Do not run both.

How this site maps to the formula

On findpercentagecalculator.net, part and whole should match the words you wrote. If the UI says “value” and “total,” total is the whole. If you are unsure, compute 12/40×100 on paper (30) and see whether the site agrees. If it says 333, you swapped. Swapping is the number one implementation of this formula in the wild.

Write “whole = 40 (attempts)” even on calculator homework. The parenthetical is the science. The 30 is the arithmetic.

Multiple wholes in one story

A class of 40, a school of 400, a district of 4000 can all host a 12. 12/40, 12/400, 12/4000 are 30%, 3%, 0.3%. Headlines pick the whole that makes the number exciting. Your assignment should pick the whole that was measured. If 12 is a subset of the class, school percent requires knowing whether those 12 are the only ones in the school, which you do not from class data. Do not inflate the denominator for drama or shrink it for pity.

When in doubt, the whole is the last noun after “of” in the question stem. Not a perfect grammar rule. A good first guess. Then check subset logic.

Percents of percents, still part over whole

“20% of the 30% who agreed” is 0.20 × 0.30 = 0.06 = 6% of the original whole, if the 30% was of that same whole. That is part-of-a-part. If you leave it as 20%, you answered a different whole (the agreers). Both 20% and 6% can be correct captions. The caption must name the whole. Unnamed 20% on a poster about a city is how 6% of residents becomes a scare.

Write two fractions: 20/100 of agreers, agreers = 30/100 of city, product 6/100 of city. The formula did not change. The whole did, twice. People who say “just multiply percents” without naming the nested sets will eventually multiply 20 and 30 to 600% and then panic. Nested sets, then multiply the fractions of one.

Empty wholes and “almost all”

If the whole is 3, a part of 2 is 66.7%, which is not “almost all” in a legal sense and is noisy in a statistical sense. Small wholes make large percents from one person. Report 2 of 3 as counts plus percent, or drop the percent. A 67% on n=3 is a weather vane. The formula is correct and still a bad headline. Correct and unwise can coexist. Choose counts when n is tiny.

Baker’s percent, where flour is the only whole

A dough formula lists flour 1000 g, water 680 g, salt 20 g. Baker’s percent sets flour as the whole even though flour is not the largest conceptual “batch” in the bowl. Water is 680/1000 = 68%. Salt is 2%. Adding those percents to 100% flour and expecting 170% “of the dough” is a category error: each line is a percent of flour, not a share of the finished mass. The finished mass is about 1700 g, so water’s share of the dough is 680/1700 = 40%, a different whole. Recipes that mix the two sentences produce bread that is either soup or a brick, and the arithmetic was faithful to the wrong noun.

Say the whole aloud. “Percent of flour” and “percent of dough” are both legal. They are not interchangeable just because both end in the word percent.

Two absences, two class sizes

Room A has 2 absent out of 16, which is 12.5%. Room B has 2 absent out of 40, which is 5%. The district office that adds the percents and reports “17.5% absence today” has added parts that do not share a whole. The honest district figure is 4 absent over 56 enrolled, about 7.1%. The rooms with the dramatic percent are often the small ones. A percent calculator will divide whatever pair you type. It will not notice that you fed it the 12.5 and the 5 instead of the headcounts. Keep the headcounts in the same note as the percents, or the next person will average the percents and brief the principal on a panic.