What do you want to compute?
Six deterministic math modes in one browser tab. Every calculation shows step-by-step working and runs locally — nothing is uploaded, no signup, no daily limit. Same input always produces the same answer.
Polynomial Factoring
Factor a polynomial with integer coefficients. Supports GCF, difference of squares, trinomials (a=1 and a≠1), sum/difference of cubes, and factoring by grouping.
Prime Factorization
Decompose any positive integer into its prime factors. Uses trial division for small numbers and Pollard's rho algorithm for large composites (up to 10¹&sup5;).
GCF and LCM Calculator
Compute the Greatest Common Factor (GCD) and Least Common Multiple of 2 or more positive integers using the Euclidean algorithm.
Matrix Calculator (2×2 and 3×3)
Compute determinant, inverse, transpose, trace, and matrix multiplication for 2×2 and 3×3 matrices with integer or decimal entries.
Quadratic Formula Solver
Solve ax² + bx + c = 0 with discriminant analysis. Shows real roots, complex roots, double root, or no-solution cases.
Sequence Calculator (nth term)
Compute the nth term of an arithmetic, geometric, or Fibonacci sequence. Optionally sum the first n terms.
Why this math calculator works when AI chatbots fail
AI text models (ChatGPT, Claude, Gemini) frequently make mistakes on the math operations in this tool: they confuse GCF with LCM, return wrong determinants for 3×3 matrices, factor trinomials incorrectly when the leading coefficient is greater than 1, and cannot reliably compute the nth term of a Fibonacci recurrence for n > 30. This calculator uses the same algorithms your textbook uses, so the answer is always correct and reproducible. Same input always produces the same output.
How to use each mode
Polynomial Factoring
Type any polynomial expression using x as the variable, ^ for exponents, and standard + - for arithmetic. Supports integer coefficients only. The calculator tries six algorithms in order: GCF extraction, difference of squares, trinomial factoring (a=1 and a≠1), sum and difference of cubes, and factoring by grouping. If no exact factorization exists, it returns the original polynomial.
Prime Factorization
Enter any positive integer from 2 up to 10¹&sup5;. The calculator uses trial division for small numbers and switches to Pollard's rho algorithm for large composites. The result includes a visual factor tree showing each split, plus properties like "even", "odd", "perfect square", and "highly composite".
GCF and LCM
Enter two or more positive integers separated by commas. The calculator uses the Euclidean algorithm for GCF (GCD), then computes LCM = product / GCF. Shows step-by-step working including each modulo operation.
Matrix Calculator
Choose 2×2 or 3×3, enter integer or decimal entries into the grid, and pick an operation: determinant, inverse, transpose, trace, or multiplication. The calculator shows each step including intermediate cofactor calculations.
Quadratic Formula
Enter coefficients a, b, c for ax² + bx + c = 0. The calculator computes the discriminant, classifies the root type, and returns both roots in exact and decimal form. Handles double root (discriminant = 0), real roots (discriminant > 0), and complex roots (discriminant < 0).
Sequence Calculator
Pick the sequence type, enter the first term and the difference or ratio (or the second term for Fibonacci), and the term number n. The calculator returns the nth term, the sum of the first n terms, and lists the first 20 terms for visual inspection.
Frequently Asked Questions
How do I factor a polynomial like x^2 - 9?
Use the difference of squares formula a² - b² = (a+b)(a-b). For x² - 9, treat it as x² - 3², so a = x and b = 3, giving (x+3)(x-3). The math calculator above detects difference of squares automatically. It also handles trinomials (a=1 and a>1), GCF extraction, sum and difference of cubes, and factoring by grouping. The factoring works on integer-coefficient polynomials up to degree 4.
How do I find the prime factorization of a large number?
Try dividing the number by 2, then 3, then 5, then 7, and so on, counting how many times each prime divides the number. The product of all the prime powers is the prime factorization. For numbers above 1 million the calculator switches to Pollard's rho algorithm which finds factors in polynomial time. For example, 7429 = 17 × 19 × 23, and the calculator renders this as a visual factor tree showing each split.
What is GCF and how is it different from LCM?
GCF (Greatest Common Factor) is the largest integer that divides all the numbers. LCM (Least Common Multiple) is the smallest positive integer that all the numbers divide into. For 12 and 18 the GCF is 6 (since 6 divides both 12 and 18) and the LCM is 36 (since 36 is the smallest number both 12 and 18 divide into). The math calculator uses the Euclidean algorithm which is the same fast method your teacher uses by hand.
How do I compute the determinant of a 3×3 matrix?
Expand along the first row using cofactors: det = a(ei - fh) - b(di - fg) + c(dh - eg) where the matrix is [[a,b,c],[d,e,f],[g,h,i]]. This is the rule of Sarrus. The calculator above does this in one click and shows the intermediate step. For a 2×2 matrix [[a,b],[c,d]] the determinant is ad - bc.
How does the quadratic formula work?
For ax² + bx + c = 0, the discriminant is b² - 4ac. If the discriminant is positive, there are two real roots x = (-b ± √(discriminant)) / (2a). If the discriminant is zero, there is one repeated root x = -b / (2a). If the discriminant is negative, there are two complex roots with imaginary part ±√(|discriminant|) / (2a). The math calculator above computes the discriminant and both roots and shows the analysis automatically.
What is the nth term of the Fibonacci sequence?
The Fibonacci sequence is F(1)=1, F(2)=1, F(n)=F(n-1)+F(n-2). The first 10 terms are 1, 1, 2, 3, 5, 8, 13, 21, 34, 55. The closed form (Binet's formula) is F(n) = (phi^n - psi^n) / √5 where phi = 1.618... and psi = -0.618... The math calculator above computes the nth term using the recurrence which is exact for integer answers.
Can AI chatbots factor polynomials correctly?
AI text models frequently get factoring wrong on trinomials with leading coefficient greater than 1, mix up GCF and LCM, return incorrect matrix determinants for 3×3 matrices, and confuse arithmetic and geometric sequences. They also cannot show working step-by-step for factoring polynomials. The math calculator above uses the exact same algorithms your textbook uses (Euclidean, synthetic division, cofactor expansion) so the answer is always correct and reproducible.
Is my data private?
Yes. Everything runs in your browser using JavaScript. No polynomials, matrices, or numbers are sent to any server. Close the tab and your last problem is gone. The only data persisted is the last input in localStorage so the form reloads when you come back. There is no account, no email capture, no analytics tied to your math problems.
Authoritative References
- Wikipedia — Polynomial
- Wikipedia — Prime Factor
- Wikipedia — Euclidean Algorithm (GCF)
- Wikipedia — Determinant (Rule of Sarrus for 3×3)
- Wikipedia — Quadratic Formula
- Wikipedia — Fibonacci Sequence (Binet's Formula)
Related Tools
- Fraction Calculator — add, subtract, multiply, divide fractions
- Statistics Calculator — mean, median, mode, standard deviation
- Percentage Calculator — increase, decrease, difference
- SIP Calculator — compound interest with monthly contributions
- Compound Interest Calculator — investment growth over time
- Math Solver — step-by-step equation solver
Comments & Ratings