Free online math solver

Math Solver with Step-by-Step Solutions

Enter a math problem to evaluate arithmetic, simplify expressions, or solve linear and quadratic equations in x. See the steps and the final answer, or explore the Math Calculators collection.

Built and maintained by Online Calculator Tools Editorial TeamUpdated Sources & methodology
✓ No sign-up✓ Exact fractions✓ Worked steps✓ Local calculation

Calculator

Enter a math problem

Type one expression or equation. Use x for the unknown.

Use +, −, ×, ÷, ^ and parentheses. Try an example to see how to type it.

What is a step-by-step math solver?

A step-by-step math solver takes a typed problem and shows the operations that lead to its answer. This page handles numerical arithmetic, simplification of expressions in x, and equations in x up to degree two. Type 2/3 * 2/3 for an exact fraction, 3(x+2)-x to collect like terms, or 2(x+3)=5x-3 to find the value that makes both sides equal.

Look for an equals sign when deciding what you want to do. An expression such as 2x+4 can be simplified and still contain x. An equation such as 2x+4=10 asks which values of x make the statement true. A problem containing only numbers can be evaluated directly.

Start with the original problem. Keep its parentheses and both sides of any equation. Those details determine which operations the solver performs.

How does the Math Solver work?

The solver reads the expression from the inside out according to the order of operations. It evaluates parentheses first, handles powers, then works through multiplication and division before addition and subtraction. Operations at the same level generally run from left to right. A chain of powers groups from the right, so 2^3^2 means 2^(3^2) and gives 512.

Typed decimals are treated as exact fractions. For example, 0.1+0.2 gives 3/10. When an arithmetic answer is a fraction, the result also shows a decimal approximation. Using the exact fraction makes later calculations easier to check. An approximation is helpful when you need to compare sizes or recognize a familiar decimal.

For algebra, the solver tracks the constant term, the coefficient of x, and the coefficient of x squared separately. Each operation changes those coefficients. The steps show smaller operations as they are evaluated, so an early line can describe one part of the problem before the final line reconnects it to the whole expression.

What formulas and methods does the Math Solver use?

Arithmetic and fraction operations

To add fractions, express them with a common denominator and add their numerators. Multiplication multiplies the numerators together and the denominators together. Division multiplies the first fraction by the reciprocal of the second. Reduce the resulting fraction by dividing numerator and denominator by their greatest common divisor. For more practice with specific fraction operations, use the Fraction Calculator.

a/b × c/d = ac/bd

Distribute and collect like terms

Distribute a factor to every term inside the brackets. Then combine terms that share the same power of x. For instance, 4x²+3x−x²+2 becomes 3x²+3x+2. The squared terms combine with each other. The first-power term and the constant each keep their own place.

Linear equations

Subtract the right side from both sides, then collect like terms. Once the equation has the form bx+c=0 with a nonzero b, subtract c from both sides and divide by b. That produces x=−c/b. The Linear Equation Calculator is useful when the problem already gives its coefficients separately.

bx + c = 0   →   x = −c/b, where b ≠ 0

Quadratic equations

For ax²+bx+c=0, first compute the discriminant b²−4ac. A positive discriminant gives two distinct real solutions. A zero discriminant gives one repeated real solution. A negative discriminant gives no real solutions. When the square root is rational, the solver returns exact reduced roots. In other real cases, it shows the exact formula with the coefficients substituted and lists rounded decimal values. The Quadratic Formula Calculator provides a dedicated coefficient form for this method.

x = (−b ± √(b² − 4ac)) ÷ (2a), where a ≠ 0

How do you use the Math Solver?

  1. Type one expression or equation into the problem field. Use x for the unknown.
  2. Use parentheses around a group that should be evaluated together. For a fraction with a sum in the numerator, type (x+1)/2.
  3. Choose Solve Math Problem. The calculator determines whether the input calls for evaluation, simplification, or equation solving.
  4. Read the answer on the right. Follow the worked steps to see how the result was obtained, and use the diagram under the buttons to compare the entered problem with a key step and the final result.
  5. Edit the problem to try a variation, or choose Reset to return to an empty form. Use Copy Result, Download, or Print to keep the answer and its steps.

The example buttons load a problem into the field so you can inspect its notation before solving it. For homework, try predicting the first step before pressing Solve. If your answer differs, compare the first line where your work takes a different direction and check the signs and brackets at that point.

For optional handheld tools to check numerical steps, see related equipment and affiliate disclosure.

Math Solver examples

Use this table to find the closest example before entering your own problem. Each expression can be typed directly into the calculator.

TaskInputResult
Evaluate parentheses first18-2(3+4)4
Multiply two fractions2/3 * 2/34/9
Expand and collect terms(x+2)(x-3)+xx² − 6
Solve with x on both sides2(x+3)=5x-3x = 3
Find two quadratic rootsx^2-5x+6=0x = 2 or 3

For the quadratic example, plotting x^2-5x+6 shows where the curve crosses the horizontal axis. Both crossings correspond to solutions of the equation. Graphing Calculator

Expressions vs. equations

An expression can be evaluated when it contains only numbers or simplified when it has terms in x. For example, 3(x+2)-x simplifies to 2x+6. It can take different values depending on what you substitute for x.

An equation includes an equals sign and asks which values make both sides equal. For example, 2x+6=10 gives x=2. If variable terms cancel, compare the constants. An identity such as 2(x+1)=2x+2 holds for all real numbers, while x=x+1 has no solution.

Keep the equals sign. Include both sides when entering an equation, even when one side is zero.

Rounding, accuracy, and practical use

Exact fractions are useful when an answer will be used in another calculation. For example, three times 1/3 is exactly 1. Three times the rounded decimal 0.3333 gives 0.9999. Keep the fraction until the last step if the question asks for a rounded answer.

The solver displays approximations of irrational quadratic roots to up to ten significant digits. For x^2=2, the two decimal answers are approximately −1.414213562 and 1.414213562. Use the radical expression in the worked steps if you need the exact values. When checking a rounded root by substitution, expect a small residual.

Worked example and a way to check it

For 2(x+3)=5x-3, distribute the 2 to get 2x+6=5x-3. Subtract the right side from both sides and collect terms to get −3x+9=0. Subtract 9 and divide by −3 to get x = 3.

Check the answer in the original equation. The left side gives 2(3+3)=12. The right side gives 5(3)−3=12. The two values match, so 3 is a solution.

Check each root separately when two are shown. In x^2-5x+6=0, substitution gives 4−10+6=0 for 2 and 9−15+6=0 for 3.

How do you check the inputs and read the result?

Group the parts that belong together

Use 1/(2*3) if 2 and 3 both belong in the denominator. Without parentheses, 1/2*3 is evaluated left to right. A leading minus follows the power, so -2^2 gives −4. Use (-2)^2 to get 4.

Start with the answer type

For arithmetic, the result is a number. A simplified expression can still contain x. For equations, the answer can list real roots, all real numbers, or no real solutions. Use the result diagram to identify the key transformation and follow the detailed steps for the full calculation.

Check supported notation

Use up to 160 characters, one variable x, and whole-number exponents from −12 to 12. Negative exponents apply to numbers. Polynomial expressions must stay at degree two or less during evaluation, and division requires a nonzero constant denominator.

When is the Math Solver useful?

Use it to check the order of operations, practice distributing and combining like terms, or solve an equation that has terms on both sides. For a word problem, translate the relationship first. “Three more than twice a number is eleven” becomes 2x+3=11, which gives x=4.

Use the System of Equations Calculator when two equations share two unknowns or the Inequality Calculator when the answer is a range of values.

Frequently asked questions about the Math Solver

Use a slash, such as 3/4. Group a sum in parentheses, as in (1+2)/5. To multiply fractions, enter 2/3 * 2/3.
Yes. Enter 2(x+3) for two times the bracket. Use a multiplication sign between two separate numbers.
Yes. It simplifies each side and moves all terms to one side before deciding whether the equation is linear, quadratic, always true, or impossible.
A quadratic with a positive discriminant has two distinct real roots. Each root separately makes the original equation true.
Nonterminating fractions and irrational roots need rounding when displayed as decimals. Keep the fraction or the exact formula in the steps when you need the unrounded value.
The math solver evaluates your expression in the browser. The solver code does not send the entered problem to a calculation service.

Definitions and methodology

The solver stores supported numerical values as ratios of integers and groups algebraic coefficients by the power of x. It selects the equation method after simplifying both sides.

Exact rational arithmeticPreserves fractions and converts typed decimals to exact ratios.
Polynomial simplificationDistributes products and collects constants, linear terms, and squared terms.
Linear equationsUses equivalent operations to isolate x. OpenStax on equivalent equations
Quadratic equationsUses the discriminant and formula to find the real roots. OpenStax on the quadratic formula
Method note. The solver computes your result in the browser. It does not send the expression to a calculation service.