Factor Calculator

Find all factors (divisors) of a positive integer, prime factorization, factor pairs, and check if a number is prime or perfect.

Input

Total Factors
24
Factor Pairs
12
✗ Composite
360 = 2^3 × 3^2 × 5

Prime Factorization Steps

DivisorQuotient
2180
290
245
315
35
51

All Factors & Pairs

All 24 Factors of 360

1234568910121518202430364045607290120180360

Factor Pairs

#Factor AFactor BCheck
113601 × 360 = 360
221802 × 180 = 360
331203 × 120 = 360
44904 × 90 = 360
55725 × 72 = 360
66606 × 60 = 360
78458 × 45 = 360
89409 × 40 = 360
9103610 × 36 = 360
10123012 × 30 = 360
11152415 × 24 = 360
12182018 × 20 = 360

Suppose you are laying out either 360 floor tiles or 361. The 360 can be arranged in 12 different row-by-column shapes, while 361 has only three factors, 1, 19 and 361, so a single 19 by 19 square is the only tidy option. Type either number into this factor calculator and it lists every factor, groups them into pairs, writes the prime factorization and labels the number prime, composite or perfect.

Trial division to the square root, 360 and 361 side by side

A factor of n is a whole number that divides n with no remainder. The page tests every candidate i from 1 up to the square root of n. Each time i divides n it records both i and n / i, because factors come in pairs; when i equals n / i the value is recorded once.

The prime factorization divides out 2 as many times as it fits, then 3, then 4 and so on, and whatever remains at the end is itself prime. It is displayed with carets, such as 2^3 × 3^2 × 5. A number above 1 is prime when nothing except 1 and itself divides it, and 1 is labelled neither prime nor composite. The perfect badge appears when the factors other than the number itself add up to the number.

Worked example. 360 = 2^3 × 3^2 × 5, so the factor count is (3+1) × (2+1) × (1+1) = 24. The page shows Total Factors 24, Factor Pairs 12 and the Composite badge. Its other factors sum to 810, not 360, so there is no perfect badge. 361 = 19^2, so (2+1) = 3 factors, and Factor Pairs reads 2: 1 × 361 and the highlighted 19 × 19. For 28 the other factors sum to 1 + 2 + 4 + 7 + 14 = 28, so the Perfect Number badge does appear.

How to Use This Calculator

  1. Type a positive whole number into Integer to factor (positive, up to 10 billion). The box starts with 360.
  2. Read Total Factors and Factor Pairs at the top, then the badge: Prime, Composite, Neither prime nor composite, and Perfect Number where it applies.
  3. Check the purple line showing the number equal to its prime factorization, and the Prime Factorization Steps table of divisors and quotients, which ends on 1.
  4. Scroll to All Factors & Pairs for the complete list and the Factor A / Factor B table.
  5. Edit the number and everything updates at once. There is no Calculate button.

Frequently Asked Questions

Why does the page say 1 is neither prime nor composite?

A prime needs exactly two distinct factors and 1 has only one, while a composite needs more than two. That leaves 1 in neither group.

What happens if I type 12.5, a negative number or something huge?

Decimals and text give Enter a whole number using digits only (no decimals or text). Zero or a negative gives Enter a positive whole number (1 or greater). Anything above 10,000,000,000 gives Number must be ≤ 10,000,000,000. Commas are stripped, so 1,001 is read as 1001.

How can I predict how many factors a number has?

Add 1 to each exponent in the prime factorization and multiply. 5,040 = 2^4 × 3^2 × 5 × 7 gives 5 × 3 × 2 × 2 = 60 factors, which you can confirm in the Total Factors box.

Is a perfect number the same as a perfect square?

No. A perfect square such as 361 has a whole-number square root and gives a pair where Factor A equals Factor B. A perfect number equals the sum of its other factors. Only six are below this page's limit, the largest being 8,589,869,056.

Can I use it to find a greatest common factor?

Indirectly. Factor each number, then multiply the primes they share, each to the smaller exponent. 360 and 364 = 2^2 × 7 × 13 share 2^2, so their greatest common factor is 4.