Formula & example
The calculation is X ÷ Y × 100. Y is the whole and X is the part.
Example
Example: 30 is what percent of 150? 30 ÷ 150 × 100 = 20%.
This calculator answers a different question than the "What is X% of Y" calculator. That one starts with a percentage and finds the amount; this one starts with two amounts and finds the percentage. If you already know the percentage and need the dollar amount, use the X% of Y calculator instead.
Another example
You got 42 questions right out of 50 on a test: 42 ÷ 50 × 100 = 84%.