TL;DR: “What percent is A of B?” means A ÷ B × 100. A is the part you care about. B is the whole you are comparing against. Swap them and you will get a number that looks confident and still be wrong. Confirm the whole in the sentence before you touch a keypad.

Read the English before the arithmetic

Teachers bury the whole in phrases like “out of,” “of the class,” “of last year’s sales.” The number after those phrases is usually B. The number you are converting into a percent is A. If a problem says “12 is what percent of 40,” you are not asking what percent 40 is of 12. Forty is the whole even though it is bigger and sitting at the end.

When the sentence is messy—“what percent of the 40-question test did Maya miss if she missed 12”—the whole is still 40. Missed items are the part. People divide 40 by 12 because 40 feels important. Importance is not a formula.

Worked example you can redo on paper

12 is what percent of 40?

  • Part = 12, whole = 40.
  • 12 ÷ 40 = 0.3.
  • 0.3 × 100 = 30%.

Check: 30% of 40 should return 12. 0.30 × 40 = 12. If the check fails, you swapped the division.

Second example: 40 is what percent of 12? That is a different question (about 333%). If your homework cannot possibly want 333%, you picked the wrong whole. Sanity-check the size of the answer before you box it.

When the whole is not the bigger number

A store sells 50 jackets this week and 80 last week. “This week is what percent of last week?” Whole = 80, part = 50 → 62.5%. Students divide 80 by 50 because 80 is bigger. Bigger is not “whole.” Whole is the reference the question names.

Stocks, followership, and recipes make the same trap. Always underline the phrase “of ___.” That blank is B.

Percents over 100%

They are legal. 18 is 150% of 12. If a teacher said answers should be under 100, the whole is probably the larger classroom size, not the smaller subgroup. Re-read, do not force the arithmetic to be polite.

Using the site without skipping the setup line

On findpercentagecalculator.net, pick the mode that matches “what percent is X of Y,” type part and whole in the labeled boxes, and then write the division on your paper anyway. Calculators confirm. They do not underline “of last year” for you.

If the tool has three modes (percent of a number, X is what percent of Y, percent change), using the change mode here will invent a base you did not mean. Mode errors look like genius typos.

Homework line that usually earns credit

Write: “part/whole × 100 = 12/40 × 100 = 30%.” Then the calculator screenshot is optional. Teachers who ban calculators still accept that line. Teachers who allow them still want that line. The line is the product. The screenshot is a receipt.

Phone keyboards and trailing zeros

Typing 12 / 40% by accident (percent key) on some apps turns 40 into 0.4 and you get 3000%. If a result is theatrical, look at whether a % key snuck in. Clear the field. Type 12 ÷ 40 × 100 as separate steps, or use the labeled whole box on the website instead of a general calculator’s percent key—those keys are not standardized across brands.

When you are done, ask once: did I divide by the noun after “of”? If yes, you did the actual problem, not a nearby problem with the same digits.

When both numbers are percents already

Sometimes A and B are both labeled with percent signs: “12% of the class is what percent of the 40% who ride the bus?” That is not 12 ÷ 40 unless the percents share a common whole, like the same class. If 12% and 40% are of different groups, you cannot divide the labels. Convert each percent back to a count, or rewrite both as fractions of the same whole. Mixing percent labels as if they were apples is how 12/40 = 30% becomes a fake nested percent.

If the problem is simply “12% is what percent of 40%,” and both refer to the same implicit 100-point scale, then you are asking 12 ÷ 40 × 100 = 30%. The inner percent signs cancel in the ratio. Write that cancellation so a teacher sees you noticed.

Zero, missing wholes, and “unknown total”

A ÷ 0 is not a percent. If the whole is missing, you cannot manufacture it from a calculator’s desire to output something. Survey questions that never measured the total cannot become “what percent of residents.” Report counts, or go measure the whole.

If the whole is “approximately 40” and the part is exact 12, your percent is approximate too. Do not report 30.000%. Carry the approximation into the words: about 30%. False precision is a style of lying that looks like extra digits.

Comparing two percents is not this formula

“30% vs 40%” is a difference of 10 percentage points, or a relative change of 10/40 if 40% is the base of the comparison. That second move is percent change, a different article. This article only answers “A is what percent of B.” Keep the job small. Mixing jobs is how a news headline says “unemployment rose 2%” when it rose 2 percentage points from 6% to 8% (a 33% relative increase). The formula here would be 8 is what percent of something else, which is not the headline’s question.

If you need both a share and a change, compute them on two lines with two labels. Never reuse the same 30% as if it answered both.

Classroom, sports, and kitchen examples that stay honest

12 made shots out of 40 attempts: 30% shooting. The whole is attempts, not minutes played and not the other team’s attempts. 12 eggs used of a 40-egg crate: 30% of the crate. If you bought a second crate, the whole changed; last night’s 30% does not transfer. Sports box scores already print makes and attempts. Use them. Do not divide points by minutes and call it a shooting percent.

Kitchen: 12 grams sugar in 40 grams of frosting is 30% sugar by mass, not by volume, unless you measured volume. Mass and volume wholes are different. The formula does not know which you weighed. You have to write “by mass” if that is what you did.

When a worksheet mixes units—12 students of 40 kilograms—you do not have a percent of a coherent whole. Ask the teacher. Inventing 30% anyway is worse than a blank.