Math calculator

Free factor calculator

Find all factors of any positive integer — enter a number to see every integer that divides it evenly, updated live, as you type.

InputsLive
Number (n)
Enter a positive integer to find all its factors.
Result
Factors
1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60
Factors of 60: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60
n60
Number of factors12
Smallest factor1
Largest factor60
Is prime?No

All positive divisors of n found by trial division up to √n.

Results are estimates. Consult a professional.

How it's calculated

How the factor calculator works

A factor of a whole number n is any positive integer that divides n evenly (with no remainder). The calculator uses trial division: it tests every integer from 1 up to √n. When i divides n, both i and n/i are added to the factor list — so each step potentially finds two factors at once, making the algorithm efficient.

For each integer i from 1 to √n:
if n mod i = 0:
add i to factors
if i ≠ n/i: add n/i to factors
Sort factors in ascending order.
Number of factors = count of all such i and n/i pairs.
Khan Academy — Factors and multiples
Example

Worked example: factors of 36 and 48

Example: Find all factors of 36 and 48

Trial division up to √36 = 6 and √48 ≈ 6.93 (test up to 6) finds all factor pairs efficiently.

Factors of 36 (test i = 1 to 6):
1 × 36, 2 × 18, 3 × 12, 4 × 9, 6 × 6
Factors: 1, 2, 3, 4, 6, 9, 12, 18, 36 (9 factors)
Factors of 48 (test i = 1 to 6):
1 × 48, 2 × 24, 3 × 16, 4 × 12, 6 × 8
Factors: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48 (10 factors)
9 factors · 10 factors
36 has 9 factors; 48 has 10 factors. Perfect squares always have an odd factor count because the square root pairs with itself.
Quick reference

Factors of numbers 12 to 60

The table shows a selection of common numbers with their complete factor lists and total factor count. Highly composite numbers like 24, 36, and 60 have unusually many factors.

NumberFactorsCount
121, 2, 3, 4, 6, 126
181, 2, 3, 6, 9, 186
241, 2, 3, 4, 6, 8, 12, 248
301, 2, 3, 5, 6, 10, 15, 308
361, 2, 3, 4, 6, 9, 12, 18, 369
481, 2, 3, 4, 6, 8, 12, 16, 24, 4810
601, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 6012

Source: trial division; all factor lists are complete and in ascending order

Practical tips

Tips for finding factors

Factoring is a building block for simplifying fractions, finding GCD/LCM, and solving algebra problems. These habits make the process faster and less error-prone.

  • Only test up to √n — every factor above √n has a corresponding partner below √n. Testing beyond √n wastes time and adds nothing new to the list.
  • Divisibility shortcuts — a number is divisible by 2 if it's even; by 3 if its digit sum is divisible by 3; by 5 if it ends in 0 or 5. These quick checks eliminate candidates before full division.
  • Prime numbers have exactly two factors — 1 and themselves. If you find only 1 and n after testing all integers up to √n, the number is prime.
  • Perfect squares have an odd factor count — because the square root pairs with itself rather than a distinct partner. Use this to double-check: if your factor count is odd, verify that n is a perfect square.
  • Factor count from prime factorisation — if n = p₁^a × p₂^b × …, the total number of factors is (a+1)(b+1)…. For 36 = 2² × 3²: (2+1)(2+1) = 9 factors ✓.
Accuracy & limits

Accuracy and limitations

The trial-division algorithm is mathematically exact for all positive integers within JavaScript's safe integer range (up to 2⁵³ − 1 ≈ 9 × 10¹⁵). For very large inputs (above ~10⁸), the calculation may take a moment as the algorithm tests up to √n candidates. The calculator only finds positive integer factors; it does not return negative factors or fractional divisors, which are sometimes included in more advanced algebraic contexts. The input must be a positive integer — decimals and negative numbers are not factored.

Glossary

Key terms

A positive integer that divides a given number evenly (with zero remainder). For example, the factors of 12 are 1, 2, 3, 4, 6, and 12.
Synonym for factor; the integer d is a divisor of n if n ÷ d has no remainder.
An algorithm that tests each integer from 1 to √n to identify factors, using paired partners above √n to complete the list.
A positive integer greater than 1 with exactly two factors: 1 and itself. Examples: 2, 3, 5, 7, 11.
A positive integer greater than 1 that has at least one factor other than 1 and itself; the opposite of a prime.
A number whose square root is a whole integer (e.g. 36 = 6²). Perfect squares always have an odd number of factors.
About

About this calculator

Part of our math calculators suite — explore all calculators.

Questions

Frequently asked questions about the free factor calculator

A factor calculator is a free online tool that helps you find all factors of a positive integer. Iterate divisors up to √n. It runs entirely in your browser with instant results and no sign-up.
JavaScript double-precision floating-point — accurate to about 15-17 significant digits. For arbitrary precision, use the Big Number calculator.
The statistics calculator computes population variance (divides by n). For sample variance, multiply variance by n/(n-1).

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.