Skip to content
    Arithmetic

    How to Find Prime Factors of a Number

    Want to arrange 84 students into equal groups and need every possible group size? Prime factorization breaks a number down into the smallest building blocks that multiply together to make it, revealing every option at once.

    Math Solver Academic Editorial Board4 min read

    Key takeaways

    • n = p₁ × p₂ × p₃ × ... — every number breaks into a unique set of prime factors.
    • A prime number only divides evenly by 1 and itself.
    • Divide by 2 first, then 3, 5, 7, and so on, until you're left with 1.
    • 1 is neither prime nor composite, so it's never part of a prime factorization.
    In this guide
    1. 01What is prime factorization?
    2. 02Why does prime factorization matter?
    3. 03The formula
    4. 04How to find prime factors step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is prime factorization?

    A prime number is a whole number greater than 1 that can only be divided evenly by 1 and itself, like 2, 3, 5, 7, or 11. Prime factorization writes any number as a multiplication of only prime numbers.

    Why does prime factorization matter?

    Every whole number bigger than 1 has exactly one prime factorization — this is such a fundamental fact in math it's called the Fundamental Theorem of Arithmetic. It's the hidden engine behind simplifying fractions and finding the HCF or LCM.

    No matter how you break 84 down, you always land on the same set of prime factors: 2, 2, 3, and 7. That uniqueness is what makes prime factorization so useful.

    The formula

    n = p₁ × p₂ × p₃ × ...
    SymbolWhat it meansExample
    nThe number you're factoring84
    p₁, p₂, p₃...The prime numbers that multiply together to give n2, 2, 3, 7

    How to find prime factors step by step

    1. 1Start with the smallest prime number, 2, and check if it divides your number evenly.
    2. 2If it does, divide by it and repeat with the result; if not, move on to the next prime (3, 5, 7...).
    3. 3Keep dividing by each prime as many times as it fits, then move to the next prime.
    4. 4Stop when you're left with 1. The list of primes you used, multiplied together, is the prime factorization.

    Enter your own number in the calculator below to see the full division-by-division breakdown.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Arithmetic
    Middle School

    Prime Factorization

    Break a number down into its prime factors

    n = p₁ × p₂ × p₃ × ...

    46
    4 rows × 6 cols = 24 dots
    1180

    💡 Example

    Reference
    Inputs:n=60
    Result:5
    Open the full Prime Factorization calculator

    Common mistakes to avoid

    • Stopping too early. Keep dividing until the remaining number is completely broken down to 1.
    • Forgetting to repeat a prime. A prime factor can appear more than once, like 2 appearing twice in 12 = 2 × 2 × 3.
    • Thinking 1 is prime. It has only one factor (itself), so it's never included in a prime factorization.

    Tips and tricks

    • Even numbers always start with 2 as their first prime factor — an easy first check.
    • You only need to test primes up to the square root of n — if nothing has divided it by then, whatever's left is prime.
    • Prime factorization is the fast route to the HCF or LCM of two numbers: compare their prime factor lists.

    Where you'll use it in real life

    • Grouping problems: finding every possible way to arrange a number of people or items into equal groups.
    • Math class: simplifying fractions and understanding square roots of numbers that aren't perfect squares.
    • Puzzles and games: many number puzzles rely on recognizing factors and primes quickly.
    • Cryptography basics: the difficulty of factoring huge numbers into primes underlies much of modern computer security.

    Quick summary

    To find the prime factorization of a number, divide it repeatedly by the smallest possible prime, moving to the next prime whenever the current one stops dividing evenly, until you reach 1. Every number has exactly one such breakdown. Try the calculator above with your own number.

    Worked example

    You want to arrange 84 students into equal groups for a project. To find all the possible group sizes, you first need the prime factorization of 84.

    1. 0184 ÷ 2 = 42
    2. 0242 ÷ 2 = 21
    3. 0321 ÷ 3 = 7
    4. 0484 = 2 × 2 × 3 × 7
    5. 05Largest prime factor = 7

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    What is a prime number?

    A prime number is a whole number greater than 1 that has exactly two factors: 1 and itself. Examples include 2, 3, 5, 7, 11, and 13.

    Is 1 a prime number?

    No. By definition, a prime number must have exactly two distinct factors, but 1 only has one factor (itself), so it's neither prime nor composite.

    How do I find the prime factorization of a large number?

    Keep dividing by the smallest possible prime number (starting at 2) until it no longer divides evenly, then move to the next prime, repeating until the remaining number is 1.

    Can two different numbers have the same prime factorization?

    No. Every whole number greater than 1 has exactly one prime factorization, which is why it's such a reliable way to compare or break down numbers.

    #Arithmetic#Middle School#Prime Factorization
    Updated

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX