Everyday mathematics

Prime Factorization Calculator

Decompose an integer into a product of prime factors using bounded trial division. Negative values retain a factor of −1, making the displayed product reproduce the original input.

  • Explicit formulas and worked examples
  • Check your inputs, then calculate
  • Data is calculated in this browser only

Check the stated input format, calculation convention and limits before using the result.

Your inputs

Local calculation

Check the example inputs, then calculate. Your values stay in this browser.

Zero and ±1 have no prime-factor decomposition in this display.

Calculation notes

Understand the Prime Factorization Calculator

Prime Factorization Calculator validates integer (absolute value 2 to 10¹²) before applying the displayed equation. Zero and ±1 have no prime-factor decomposition in this display.

Formula and logic

What is the formula for the Prime Factorization Calculator?

Prime Factorization Calculator: n = p₁ × p₂ × … × pₖ. Input definitions: value = Integer (absolute value 2 to 10¹²). Use the selected convention throughout the calculation.

Worked example

How can I reproduce the Prime Factorization Calculator example?

Prime Factorization Calculator baseline input: Integer (absolute value 2 to 10¹²): 360. Output: Prime factors = 2 × 2 × 2 × 3 × 3 × 5. Substitute these values into the displayed equation to reproduce the result.

How to read the result

How should I interpret the Prime Factorization Calculator result?

  • Read prime factors with its stated unit and convention. The default example and the independent worked scenario use different inputs, so compare the assumptions before comparing the numbers.
  • Change one input at a time and use the equation to explain the result; do not mix unit, grade-scale, time-zone or rounding conventions across comparisons.
Limits and assumptions

What limits apply to the Prime Factorization Calculator?

  • Zero and ±1 have no prime-factor decomposition in this display.
  • Absolute values above 10¹² are excluded to bound interactive calculation time.

Content and calculation reviewed:

Understand the calculation

How to use it and the math behind it

Read the complete explanation

Four steps to check your inputs and results

  1. Decompose an integer into a product of prime factors using bounded trial division. Negative values retain a factor of −1, making the displayed product reproduce the original input.
  2. Enter Integer (absolute value 2 to 10¹²) in the stated format. Baseline values are for reproduction.
  3. Check the output unit and convention: Read prime factors with its stated unit and convention. The default example and the independent worked scenario use different inputs, so compare the assumptions before comparing the numbers.
  4. Change one input and compare the result. Zero and ±1 have no prime-factor decomposition in this display. Absolute values above 10¹² are excluded to bound interactive calculation time.

Prime Factorization Calculator: calculation relationships

Divide by a prime repeatedly before moving to the next candidate. For 84, two divisions by 2 leave 21, then 3 and 7 complete 2×2×3×7. Testing beyond the square root of the remaining value is unnecessary: any composite remainder would already have a smaller factor. Multiplying the displayed factors independently is a useful check.

n = p₁ × p₂ × … × pₖ

The detailed guide adds variable definitions, a reproducible example, a practice question and model limitations.

From question to result

Continue with a related question

Explore all Everyday mathematics tools and guides