Skip to main content

Divisibility Test Calculator

Our free arithmetic calculator solves divisibility test problems. Get worked examples, visual aids, and downloadable results.

Skip to calculator
Mathematics

Divisibility Test Calculator

Test divisibility of any number by standard divisors 2 through 25. See prime factorization, all factors, remainders, and quotients instantly.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
360
7
Number Analyzed
360
Prime Factorization: 2^3 * 3^2 * 5
Total Factors
24
Passes Tests
11/15
Custom (7)
No

Divisibility Tests

Divisible by 2
360 / 2 = 180
Divisible by 3
360 / 3 = 120
Divisible by 4
360 / 4 = 90
Divisible by 5
360 / 5 = 72
Divisible by 6
360 / 6 = 60
Divisible by 7
remainder 3
Divisible by 8
360 / 8 = 45
Divisible by 9
360 / 9 = 40
Divisible by 10
360 / 10 = 36
Divisible by 11
remainder 8
Divisible by 12
360 / 12 = 30
Divisible by 13
remainder 9
Divisible by 15
360 / 15 = 24
Divisible by 20
360 / 20 = 18
Divisible by 25
remainder 10
All Factors of 360
1234568910121518202430364045607290120180360
Your Result
360 has 24 factors | Prime factorization: 2^3 * 3^2 * 5
Share Your Result
Understand the Math

Formula

n is divisible by d if n mod d = 0

Where n is the number being tested, d is the potential divisor, and mod gives the remainder after division. If the remainder is zero, the number is evenly divisible.

Last reviewed: December 2025

Worked Examples

Example 1: Divisibility Tests for 360

Test which standard divisors (2-13) divide evenly into 360.
Solution:
360 / 2 = 180 (divisible, last digit 0 is even) 360 / 3 = 120 (divisible, digit sum 9 is divisible by 3) 360 / 4 = 90 (divisible, last two digits 60 / 4 = 15) 360 / 5 = 72 (divisible, ends in 0) 360 / 6 = 60 (divisible, passes both 2 and 3 tests) 360 / 8 = 45 (divisible, 360 / 8 = 45) 360 / 9 = 40 (divisible, digit sum 9 is divisible by 9) 360 / 10 = 36 (divisible, ends in 0) 360 / 12 = 30 (divisible) Not divisible by: 7 (remainder 3), 11 (remainder 8), 13 (remainder 9)
Result: 360 is divisible by 2, 3, 4, 5, 6, 8, 9, 10, 12 | Not divisible by 7, 11, 13

Example 2: Prime Factorization Check for 2,520

Find the prime factorization of 2,520 and test divisibility by 7.
Solution:
2520 / 2 = 1260 1260 / 2 = 630 630 / 2 = 315 315 / 3 = 105 105 / 3 = 35 35 / 5 = 7 7 / 7 = 1 Prime factorization: 2^3 * 3^2 * 5 * 7 Since 7 appears in the factorization, 2520 is divisible by 7 2520 / 7 = 360
Result: 2,520 = 2^3 * 3^2 * 5 * 7 | Divisible by 7 with quotient 360
Expert Insights

Background & Theory

The Divisibility Test Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.

History

The history behind the Divisibility Test Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.

Share this calculator

Explore More

Frequently Asked Questions

A divisibility test is a shorthand rule that determines whether one integer divides evenly into another without performing the full division. These tests are useful because they allow quick mental checks, saving time in exams, competitions, and everyday calculations. For example, the divisibility rule for 3 states that a number is divisible by 3 if the sum of its digits is divisible by 3. So for 729, the digit sum is 7 + 2 + 9 = 18, which is divisible by 3, confirming that 729 is divisible by 3. These shortcuts are fundamental in number theory and are building blocks for more advanced topics like prime factorization and modular arithmetic.
For divisibility by 3, add up all the digits of the number. If the sum is divisible by 3, then the original number is also divisible by 3. For divisibility by 9, the same digit-sum rule applies but the sum must be divisible by 9 instead. For example, take 2,745: digit sum is 2 + 7 + 4 + 5 = 18. Since 18 is divisible by both 3 and 9, the number 2,745 is divisible by both. This rule works because 10 leaves a remainder of 1 when divided by 3 or 9, so each digit contributes its face value to the remainder. You can apply the rule recursively until you reach a single digit.
The divisibility rule for 7 is more complex than rules for 2, 3, or 5. One common method is: take the last digit, double it, and subtract from the remaining number. If the result is divisible by 7, so is the original. For example, for 364: last digit is 4, double it to get 8, subtract from 36 to get 28. Since 28 is divisible by 7 (28 / 7 = 4), 364 is divisible by 7. This rule is harder because 7 does not have a simple relationship with powers of 10. Unlike 2 and 5 (which are factors of 10) or 3 and 9 (where 10 leaves remainder 1), the remainders of powers of 10 modulo 7 cycle through 1, 3, 2, 6, 4, 5.
Prime factorization is the decomposition of a number into its prime factors, and it provides the most complete picture of divisibility. A number n is divisible by another number d if and only if every prime factor of d (with its multiplicity) appears in the prime factorization of n. For example, 360 = 2^3 * 3^2 * 5. To check if 360 is divisible by 12 (= 2^2 * 3), we verify that 360 has at least 2^2 and 3^1 in its factorization, which it does. This approach explains why certain divisibility rules work together: if a number is divisible by both 3 and 4, it must be divisible by 12, because the prime factors combine.
For divisibility by 4, check whether the last two digits of the number form a number divisible by 4. For divisibility by 8, check whether the last three digits form a number divisible by 8. These rules work because 100 is divisible by 4 and 1,000 is divisible by 8, so only the trailing digits matter. For example, 3,716: the last two digits are 16, and 16 / 4 = 4, so 3,716 is divisible by 4. For 5,128: the last three digits are 128, and 128 / 8 = 16, so 5,128 is divisible by 8. This pattern extends further: divisibility by 16 requires the last four digits to be divisible by 16, and so on for higher powers of 2.
Divisibility by 6 requires a number to be divisible by both 2 AND 3, since 6 = 2 * 3 and these are coprime factors. So check that the last digit is even and the digit sum is divisible by 3. For divisibility by 12, the number must be divisible by both 3 AND 4 (since 12 = 3 * 4 and gcd(3,4) = 1). Check that the digit sum is divisible by 3 and the last two digits form a number divisible by 4. For example, 2,436: it ends in 6 (even, so divisible by 2), digit sum is 2 + 4 + 3 + 6 = 15 (divisible by 3), so it is divisible by 6. The last two digits 36 are divisible by 4 (36/4 = 9), so 2,436 is also divisible by 12.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

n is divisible by d if n mod d = 0

Where n is the number being tested, d is the potential divisor, and mod gives the remainder after division. If the remainder is zero, the number is evenly divisible.

Worked Examples

Example 1: Divisibility Tests for 360

Problem: Test which standard divisors (2-13) divide evenly into 360.

Solution: 360 / 2 = 180 (divisible, last digit 0 is even)\n360 / 3 = 120 (divisible, digit sum 9 is divisible by 3)\n360 / 4 = 90 (divisible, last two digits 60 / 4 = 15)\n360 / 5 = 72 (divisible, ends in 0)\n360 / 6 = 60 (divisible, passes both 2 and 3 tests)\n360 / 8 = 45 (divisible, 360 / 8 = 45)\n360 / 9 = 40 (divisible, digit sum 9 is divisible by 9)\n360 / 10 = 36 (divisible, ends in 0)\n360 / 12 = 30 (divisible)\nNot divisible by: 7 (remainder 3), 11 (remainder 8), 13 (remainder 9)

Result: 360 is divisible by 2, 3, 4, 5, 6, 8, 9, 10, 12 | Not divisible by 7, 11, 13

Example 2: Prime Factorization Check for 2,520

Problem: Find the prime factorization of 2,520 and test divisibility by 7.

Solution: 2520 / 2 = 1260\n1260 / 2 = 630\n630 / 2 = 315\n315 / 3 = 105\n105 / 3 = 35\n35 / 5 = 7\n7 / 7 = 1\nPrime factorization: 2^3 * 3^2 * 5 * 7\nSince 7 appears in the factorization, 2520 is divisible by 7\n2520 / 7 = 360

Result: 2,520 = 2^3 * 3^2 * 5 * 7 | Divisible by 7 with quotient 360

Frequently Asked Questions

What is a divisibility test and why is it useful?

A divisibility test is a shorthand rule that determines whether one integer divides evenly into another without performing the full division. These tests are useful because they allow quick mental checks, saving time in exams, competitions, and everyday calculations. For example, the divisibility rule for 3 states that a number is divisible by 3 if the sum of its digits is divisible by 3. So for 729, the digit sum is 7 + 2 + 9 = 18, which is divisible by 3, confirming that 729 is divisible by 3. These shortcuts are fundamental in number theory and are building blocks for more advanced topics like prime factorization and modular arithmetic.

How do you test divisibility by 3 and 9?

For divisibility by 3, add up all the digits of the number. If the sum is divisible by 3, then the original number is also divisible by 3. For divisibility by 9, the same digit-sum rule applies but the sum must be divisible by 9 instead. For example, take 2,745: digit sum is 2 + 7 + 4 + 5 = 18. Since 18 is divisible by both 3 and 9, the number 2,745 is divisible by both. This rule works because 10 leaves a remainder of 1 when divided by 3 or 9, so each digit contributes its face value to the remainder. You can apply the rule recursively until you reach a single digit.

What is the divisibility rule for 7 and why is it complicated?

The divisibility rule for 7 is more complex than rules for 2, 3, or 5. One common method is: take the last digit, double it, and subtract from the remaining number. If the result is divisible by 7, so is the original. For example, for 364: last digit is 4, double it to get 8, subtract from 36 to get 28. Since 28 is divisible by 7 (28 / 7 = 4), 364 is divisible by 7. This rule is harder because 7 does not have a simple relationship with powers of 10. Unlike 2 and 5 (which are factors of 10) or 3 and 9 (where 10 leaves remainder 1), the remainders of powers of 10 modulo 7 cycle through 1, 3, 2, 6, 4, 5.

How does prime factorization relate to divisibility?

Prime factorization is the decomposition of a number into its prime factors, and it provides the most complete picture of divisibility. A number n is divisible by another number d if and only if every prime factor of d (with its multiplicity) appears in the prime factorization of n. For example, 360 = 2^3 * 3^2 * 5. To check if 360 is divisible by 12 (= 2^2 * 3), we verify that 360 has at least 2^2 and 3^1 in its factorization, which it does. This approach explains why certain divisibility rules work together: if a number is divisible by both 3 and 4, it must be divisible by 12, because the prime factors combine.

What are the divisibility rules for 4 and 8?

For divisibility by 4, check whether the last two digits of the number form a number divisible by 4. For divisibility by 8, check whether the last three digits form a number divisible by 8. These rules work because 100 is divisible by 4 and 1,000 is divisible by 8, so only the trailing digits matter. For example, 3,716: the last two digits are 16, and 16 / 4 = 4, so 3,716 is divisible by 4. For 5,128: the last three digits are 128, and 128 / 8 = 16, so 5,128 is divisible by 8. This pattern extends further: divisibility by 16 requires the last four digits to be divisible by 16, and so on for higher powers of 2.

How do you test divisibility by 6 and 12?

Divisibility by 6 requires a number to be divisible by both 2 AND 3, since 6 = 2 * 3 and these are coprime factors. So check that the last digit is even and the digit sum is divisible by 3. For divisibility by 12, the number must be divisible by both 3 AND 4 (since 12 = 3 * 4 and gcd(3,4) = 1). Check that the digit sum is divisible by 3 and the last two digits form a number divisible by 4. For example, 2,436: it ends in 6 (even, so divisible by 2), digit sum is 2 + 4 + 3 + 6 = 15 (divisible by 3), so it is divisible by 6. The last two digits 36 are divisible by 4 (36/4 = 9), so 2,436 is also divisible by 12.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy