HomeArticlesGuideAlgebra & Number Theory Guide
GUIDE

Algebra & Number Theory Calculators: A Complete Guide

Learn factorials, GCF and LCM, permutations and combinations, prime factorization, roots, and scientific notation with worked examples and free calculators.

Updated 2026-07-04

Algebra and number theory calculators solve some of the most common problems in arithmetic, combinatorics, and pre-algebra: breaking numbers into their prime building blocks, counting arrangements, simplifying fractions, and expressing extreme values compactly. These six tools cover the core toolkit that shows up in classroom homework, competitive exam prep, probability problems, and even everyday programming tasks like hashing and cryptography. Each one is built around a specific, well-defined formula rather than an approximation, so results are exact.

This guide walks through each calculator in the order you are most likely to need them — starting with factorial, which underlies permutations and combinations, moving through GCF/LCM and prime factorization, and finishing with root extraction and scientific notation for handling numbers at either extreme of scale. Along the way, each step includes a worked example so you can check your own hand calculation against the formula before reaching for the calculator.

Step 1: Calculate Factorials for Permutations and Sequences

The factorial of a non-negative integer n, written n!, is the product of every positive integer from n down to 1: n! = n × (n−1) × (n−2) × ... × 2 × 1. By definition, 0! = 1, since there is exactly one way to arrange zero items. Factorials grow extremely fast — 5! is 120, but 10! is already 3,628,800, and 15! exceeds one trillion.

Factorials show up any time you need to count the number of ways to arrange a full set of distinct items in order. If you have 6 books and want to know how many different ways you can line them up on a shelf, the answer is 6! = 720. This is also the foundation of permutations and combinations, both of which are built directly from factorial ratios (covered in Step 3).

Factorials also appear in series expansions used across calculus and physics, such as the Taylor series for eˣ, which sums terms of the form xⁿ/n!. In probability, factorials calculate the total sample space size before you apply constraints — for example, the number of possible orderings of a 52-card deck is 52!, a number with 68 digits.

Worked example: Calculate 7!. 7! = 7 × 6 × 5 × 4 × 3 × 2 × 1 = 42 × 5 × 4 × 3 × 2 × 1 = 210 × 4 × 3 × 2 × 1 = 840 × 3 × 2 × 1 = 2,520 × 2 × 1 = 5,040

So 7! = 5,040 — meaning there are 5,040 distinct ways to arrange 7 unique items in a row. The Factorial Calculator computes this instantly for any non-negative integer and shows the full step-by-step multiplication chain, which is useful for checking your arithmetic on larger values where a manual error is easy to make.

One practical caution: factorial values overflow standard number precision quickly. Past roughly 170!, the result exceeds what a standard 64-bit floating-point number can represent exactly, so if you are working with extremely large factorials in a spreadsheet or script, expect precision loss beyond that point.

Step 2: Find the GCF and LCM of Two Numbers

The greatest common factor (GCF), also called the greatest common divisor (GCD), is the largest positive integer that divides two numbers with no remainder. The least common multiple (LCM) is the smallest positive integer that both numbers divide into evenly. Both concepts are essential for working with fractions: GCF reduces fractions to lowest terms, and LCM finds a common denominator for addition and subtraction.

The most efficient way to compute GCF for large numbers is the Euclidean algorithm: repeatedly replace the larger number with the remainder of dividing it by the smaller number, until the remainder reaches zero — the last non-zero remainder is the GCF. For example, GCF(48, 18): 48 mod 18 = 12, then 18 mod 12 = 6, then 12 mod 6 = 0, so the GCF is 6. This method avoids the need to fully factor either number, which matters for large values.

An equally valid approach for smaller numbers is prime factorization: break both numbers into their prime factors, then take the lowest power of each shared prime for the GCF, and the highest power of every prime appearing in either number for the LCM.

Worked example: Find the GCF and LCM of 24 and 36. Prime factorization: 24 = 2³ × 3¹, and 36 = 2² × 3². GCF: take the lower power of each shared prime → 2² × 3¹ = 4 × 3 = 12. LCM: take the higher power of each prime present → 2³ × 3² = 8 × 9 = 72.

Check: GCF × LCM should equal the product of the two original numbers. 12 × 72 = 864, and 24 × 36 = 864 — they match. This identity, GCF(a,b) × LCM(a,b) = a × b, always holds and is a fast way to verify your answer or compute one value once you already know the other. The GCF and LCM Calculator returns both values instantly for any pair of integers, along with the prime factorization used to derive them.

Step 3: Compute Permutations and Combinations

Permutations and combinations both count the number of ways to select r items from a group of n items, but they differ in one crucial respect: permutations count order, combinations do not. The permutation formula is nPr = n! ÷ (n−r)!, and the combination formula is nCr = n! ÷ (r! × (n−r)!). Notice that nCr = nPr ÷ r! — combinations are simply permutations divided by the number of ways to reorder the r selected items, since each unique group counts once instead of r! times.

Deciding which formula applies comes down to a single question: does the order of selection change the outcome? Ranking the top 3 finishers in a race (1st, 2nd, 3rd) is a permutation problem, because swapping two finishers produces a different result. Selecting 3 people for a project team with no distinct roles is a combination problem, because the same 3 people form the same team regardless of the order they were chosen in.

Worked example: From a group of 8 people, how many ways can you choose a president, secretary, and treasurer (3 distinct roles), and how many ways can you choose an unordered 3-person committee?

Permutations (order matters — roles are distinct): 8P3 = 8! ÷ (8−3)! = 8! ÷ 5! = (8 × 7 × 6 × 5!) ÷ 5! = 8 × 7 × 6 = 336.

Combinations (order doesn't matter — committee has no roles): 8C3 = 8! ÷ (3! × 5!) = 336 ÷ 6 = 56.

The relationship holds: 336 ÷ 3! = 336 ÷ 6 = 56. The Permutation and Combination Calculator computes both nPr and nCr for any n and r in one entry, which is useful for confirming which formula applies to a specific word problem by comparing both outputs.

Step 4: Break a Number Down with Prime Factorization

Prime factorization expresses any integer greater than 1 as a product of prime numbers raised to whole-number powers. Every integer has exactly one prime factorization — this is the Fundamental Theorem of Arithmetic — which makes prime factorization a foundational building block for GCF, LCM, simplifying radicals, and testing primality.

The standard method is trial division: divide the number by the smallest prime (2) repeatedly until it no longer divides evenly, then move to the next prime (3, 5, 7, 11, ...), continuing until the remaining value is 1. You only need to test primes up to the square root of the original number — if nothing up to that point divides evenly, whatever remains is itself prime.

Worked example: Find the prime factorization of 360. 360 ÷ 2 = 180 180 ÷ 2 = 90 90 ÷ 2 = 45 (no longer divisible by 2) 45 ÷ 3 = 15 15 ÷ 3 = 5 (no longer divisible by 3) 5 is itself prime.

So 360 = 2³ × 3² × 5¹. From this factorization, you can immediately compute the total number of divisors by adding 1 to each exponent and multiplying: (3+1) × (2+1) × (1+1) = 4 × 3 × 2 = 24 divisors. The Prime Factorization Calculator handles this automatically for any integer, reporting the full factorization, the total divisor count, and whether the input itself is prime — useful for quickly checking large numbers by hand would otherwise take a while to verify.

Step 5: Calculate Square Roots, Cube Roots, and Nth Roots

The nth root of a number x is the value that, when raised to the power n, produces x. This is written as ⁿ√x, and it is mathematically equivalent to raising x to the power of 1/n. The square root (n = 2) and cube root (n = 3) are the most common cases, but any positive integer degree is valid, including fourth, fifth, and sixth roots.

Square roots and other even-degree roots behave differently from odd-degree roots when it comes to negative numbers. An odd root of a negative number is well-defined within the real numbers — the cube root of −8 is −2, because (−2)³ = −8. An even root of a negative number, however, has no real solution, because no real number squared (or raised to any even power) can produce a negative result. This is why root calculators that only handle real numbers typically restrict input to non-negative values for even-degree roots.

Worked example: Find the fourth root of 81. ⁸¹^(1/4) — look for a value y such that y⁴ = 81. Testing y = 3: 3⁴ = 3 × 3 × 3 × 3 = 81. So the fourth root of 81 is 3.

Worked example: Find the cube root of 125. Looking for y such that y³ = 125. Testing y = 5: 5³ = 125. So the cube root of 125 is 5.

The Root Calculator computes square roots, cube roots, and roots up to the sixth degree for any non-negative value, which is particularly useful for degrees beyond square and cube, where mental estimation becomes impractical (finding the fifth root of 100,000 by hand, for instance, is not something most people can do quickly).

Step 6: Convert Numbers to and from Scientific Notation

Scientific notation expresses a number as a coefficient between 1 and 10 (inclusive of 1, exclusive of 10) multiplied by a power of 10: a × 10ᵇ, where 1 ≤ |a| < 10. It exists to make extremely large or extremely small numbers easier to write, compare, and calculate with, without tracking long strings of zeros.

To convert a standard decimal into scientific notation, move the decimal point until exactly one non-zero digit remains before it, and count the number of places moved — that count becomes the exponent. Moving the decimal to the left (for large numbers) produces a positive exponent; moving it to the right (for small numbers, less than 1) produces a negative exponent.

Worked example: Convert 6,371,000 to scientific notation. Move the decimal point left until one digit remains before it: 6,371,000 → 6.371, moved 6 places. Result: 6.371 × 10⁶.

Worked example: Convert 0.000047 to scientific notation. Move the decimal point right until one non-zero digit remains before it: 0.000047 → 4.7, moved 5 places right, giving a negative exponent. Result: 4.7 × 10⁻⁵.

To convert back from scientific notation to a decimal, reverse the process: shift the decimal point by the number of places indicated by the exponent, in the direction matching its sign. The Scientific Notation Calculator converts in both directions and is especially useful for double-checking unit conversions in physics and chemistry, where values routinely span from atomic scales (10⁻¹⁹ and smaller) to astronomical scales (10²³ and larger).

Key Terms

  • Factorial (n!) — the product of all positive integers from n down to 1; 0! is defined as 1.
  • GCF (Greatest Common Factor) — the largest integer that divides two or more numbers without a remainder; also called GCD.
  • LCM (Least Common Multiple) — the smallest positive integer that two or more numbers divide into evenly.
  • Euclidean Algorithm — a method for finding the GCF of two numbers through repeated division and remainder-taking, without needing to fully factor either number.
  • Permutation (nPr) — a count of ordered arrangements of r items chosen from n, where order matters.
  • Combination (nCr) — a count of unordered selections of r items chosen from n, where order does not matter.
  • Prime Factorization — expressing an integer as a product of prime numbers raised to whole-number powers.
  • Nth Root — the value which, raised to the power n, produces a given number; equivalent to raising that number to the power 1/n.
  • Scientific Notation — a way of writing numbers as a coefficient between 1 and 10 multiplied by a power of 10, used to compactly represent very large or very small values.

Frequently Asked Questions

0! is defined as 1 by mathematical convention, not by multiplying anything down to zero. Factorial counts the number of ways to arrange a set of items in order, and there is exactly one way to arrange zero items — the empty arrangement. This definition also keeps formulas like nPr = n!/(n−r)! and the binomial theorem consistent when r equals n. Try n = 0 in the [Factorial Calculator](/factorial-calculator/) to see the result directly.
The greatest common factor (GCF) is the largest number that divides evenly into two or more numbers, while the least common multiple (LCM) is the smallest number that both numbers divide into evenly. GCF is used to simplify fractions — divide numerator and denominator by their GCF to reduce a fraction to lowest terms. LCM is used to find a common denominator when adding or subtracting fractions with different denominators. The [GCF and LCM Calculator](/gcf-lcm-calculator/) computes both from the same pair of numbers in one step.
This identity holds because every prime factor in a and b is accounted for exactly once between the GCF (which takes the lowest shared power of each prime) and the LCM (which takes the highest power of each prime across both numbers). For example, GCF(24, 36) = 12 and LCM(24, 36) = 72, and 12 × 72 = 864, which equals 24 × 36 = 864. This shortcut lets you find the LCM quickly once you know the GCF: LCM = (a × b) ÷ GCF.
Ask whether the order of selection matters. If arranging 3 people on a podium (1st, 2nd, 3rd) counts as different outcomes depending on who stands where, use a permutation. If you are simply choosing 3 people for a committee with no distinct roles, order does not matter and you use a combination. Permutations always produce equal or larger counts than combinations for the same n and r, because nPr = nCr × r!. The [Permutation and Combination Calculator](/permutation-combination-calculator/) computes both so you can compare them directly.
No — nCr is always less than or equal to nPr for the same values of n and r, because nPr = nCr × r!, and r! is always at least 1. They are only equal when r equals 0 or r equals 1, since 0! and 1! both equal 1. For any r of 2 or more, permutations will outnumber combinations because each unique group of r items can be arranged in r! different orders, and permutations count each of those orders separately.
Start by dividing the number by the smallest prime, 2, repeatedly until it no longer divides evenly, then move to 3, then 5, and so on, testing each successive prime up to the square root of the remaining value. For example, 360 divides by 2 three times to give 45, then by 3 twice to give 5, and 5 is itself prime, so 360 = 2³ × 3² × 5¹. Once no prime up to the square root of the remainder divides evenly, whatever is left over is itself a prime factor. The [Prime Factorization Calculator](/prime-factorization-calculator/) automates this and also reports whether the original number is itself prime.
Once you have a number written as a product of primes raised to powers, such as 360 = 2³ × 3² × 5¹, add 1 to each exponent and multiply the results together: (3+1) × (2+1) × (1+1) = 4 × 3 × 2 = 24 divisors. This works because each divisor is formed by choosing an exponent from 0 up to the maximum for every prime factor independently. The [Prime Factorization Calculator](/prime-factorization-calculator/) reports the divisor count automatically alongside the full factorization.
An even root (square root, fourth root, sixth root, and so on) of a negative number has no solution within the real numbers, because no real number multiplied by itself an even number of times can produce a negative result — a negative times a negative is always positive. This is different from odd roots: the cube root of −27 is −3, since (−3)³ = −27, which is a valid real answer. The [Root Calculator](/root-calculator/) restricts inputs to non-negative values to avoid this ambiguity, since results for even roots of negatives require complex numbers.
Move the decimal point to the right until exactly one non-zero digit remains to its left, and count how many places you moved it — that count becomes a negative exponent of 10. For example, 0.000047 becomes 4.7 × 10⁻⁵, because the decimal moved 5 places to the right. The coefficient must always satisfy 1 ≤ |coefficient| < 10. The [Scientific Notation Calculator](/scientific-notation-calculator/) converts in both directions and also handles multiplication-friendly exponent arithmetic.
Scientific notation compresses numbers with many digits into a compact coefficient-and-exponent form that is easier to read, compare, and calculate with. Comparing 6.022 × 10²³ (Avogadro's number) to 1.6 × 10⁻¹⁹ (an electron's charge in coulombs) is far more manageable than comparing the equivalent numbers written out with 23 or 19 zeros. It also makes multiplication and division simpler, since you can multiply coefficients directly and add or subtract exponents rather than tracking every digit.
No — factorial growth accelerates rather than slowing down, which is why it is described as super-exponential. 10! is 3,628,800, but 20! is already about 2.43 × 10¹⁸, larger than the number of seconds since the universe began. This rapid growth is precisely why factorials appear in probability problems involving arrangements: the number of ways to shuffle just a standard 52-card deck (52!) is a number with 68 digits, far exceeding the number of atoms in the observable universe.
Yes — GCF (greatest common factor) and GCD (greatest common divisor) are two names for the identical concept and are used interchangeably in different textbooks and regions. Both describe the largest positive integer that divides two or more numbers without a remainder. The [GCF and LCM Calculator](/gcf-lcm-calculator/) uses the term GCF, but the underlying Euclidean algorithm it applies is the same one taught under the GCD name in most computer science courses.

Related Articles

GUIDE

Geometry & Coordinate Geometry Calculators: A Complete Guide

GUIDE

Text Analysis Calculators: Size, Speed & Word Count

GUIDE

Small Business Finance Guide

GUIDE

Startup Metrics Guide — CAC, CLV, Churn & More

GUIDE

Digital & Number Format Converters: Storage, Resolution & Bases