Calculators.Life Calculator
Math

Algebraic Equation Calculator

Input Parameters

Scenarios
Coefficient for x² (quadratic) or x on LHS (linear)
Constant b on LHS (linear) or coefficient for x (quadratic)
Coefficient for x on RHS (linear) or constant c (quadratic)
Constant d on RHS (linear) or evaluation point x

Computed Results

Solution
x = 7.5
Primary Value / Root 17.5
Secondary Root (if quadratic)7.5
Discriminant (Δ)0
Step-by-Step Derivation1) Subtract 3x from both sides: 2x + -3 = 12 2) Subtract -3 from both sides: 2x = 15 3) Divide both sides by 2: x = 7.5

This algebraic equation calculator solves linear and quadratic equations, providing step-by-step derivations for the roots. It determines exact values for the variable, calculates the discriminant to identify root types, and evaluates polynomial functions at specific points to help verify manual calculations.

Practical Use Cases

Algebraic equations form the foundation of many mathematical and scientific applications. This tool is primarily used to verify manual calculations when solving for unknown variables. It helps identify the x-intercepts of parabolic functions by calculating quadratic roots, simplifies linear equations by isolating the variable, and evaluates specific points along a polynomial curve. By providing step-by-step derivations, it clarifies the process of balancing equations and applying the quadratic formula.

Formulas and Calculation Methods

The calculator applies different mathematical rules depending on the selected equation type.

Linear Equations

A standard linear equation is evaluated in the format:

ax + b = cx + d

To solve for x, the calculator isolates the variable by subtracting cx and b from both sides, resulting in:

x = (d − b) ÷ (a − c)

If the coefficients a and c are equal, the equation either has infinite solutions (if b equals d) or no solution (if b does not equal d).

Quadratic Equations

Quadratic equations are evaluated in the standard form:

ax² + bx + c = 0

The calculator first determines the discriminant (Δ) to identify the nature of the roots:

Δ = b² − 4ac

It then applies the quadratic formula to find the roots:

x = (−b ± √Δ) ÷ 2a

If Δ is positive, there are two distinct real roots. If Δ is zero, there is one repeated real root. If Δ is negative, the calculator computes the complex roots.

Polynomial Evaluation

In evaluate mode, the tool calculates the result of a quadratic function at a specific point x = d:

f(x) = ax² + bx + c

Verified Scenario Walkthroughs

Here are examples of how the calculator processes different types of equations based on specific inputs.

Simple Linear Equation

Consider a linear equation where Coefficient a is 10, Constant b is 2, Coefficient c is 2, and Constant d is 10. The equation is 10x + 2 = 2x + 10. Subtracting 2x from both sides gives 8x + 2 = 10. Subtracting 2 from both sides yields 8x = 8. Dividing by 8 results in a solution of x = 1.

Quadratic Equation with Two Distinct Roots

If you input a quadratic equation with Coefficient a = 1, Coefficient b = -5, and Coefficient c = 6, the calculator first finds the discriminant: (-5)² − 4(1)(6) = 1. Because the discriminant is greater than zero, there are two distinct real roots. Applying the quadratic formula yields x1 = 3 and x2 = 2.

Evaluating a Polynomial Function

To evaluate the function f(x) = 2x² + 3x + 5 at the point x = 4, select the evaluate mode. The calculator substitutes 4 for x: 2(4)² + 3(4) + 5. This simplifies to 2(16) + 12 + 5, which equals 49.

Quadratic Equation with Complex Roots

For a quadratic equation where a = 1, b = 2, and c = 5, the discriminant is 2² − 4(1)(5) = -16. Because the discriminant is negative, the roots are complex. The calculator determines the solution to be -1 ± 2i.

How to Use the Calculator

Follow these steps to solve your equation or evaluate a function:

  1. Select the Equation Type from the dropdown menu (Linear, Quadratic, or Evaluate).
  2. Enter Coefficient a. For linear equations, this is the coefficient of x on the left side. For quadratics, it is the coefficient of x².
  3. Enter Constant / Coefficient b. For linear equations, this is the constant on the left side. For quadratics, it is the coefficient of x.
  4. Enter Coefficient c. For linear equations, this is the coefficient of x on the right side. For quadratics, it is the constant term.
  5. Enter Constant d / Evaluation x. For linear equations, this is the constant on the right side. If evaluating a function, this is the value of x.
  6. Review the calculated solution, discriminant (if applicable), and the step-by-step derivation provided in the results.

Inputs and Outputs Reference

The table below summarizes the data used and generated by the calculator.

Field NameTypeDescription
Equation TypeInputThe format of the equation: linear, quadratic, or evaluate.
Coefficient aInputCoefficient for x² (quadratic) or x on the left-hand side (linear).
Constant / Coefficient bInputConstant b on the left-hand side (linear) or coefficient for x (quadratic).
Coefficient cInputCoefficient for x on the right-hand side (linear) or constant c (quadratic).
Constant d / Evaluation xInputConstant d on the right-hand side (linear) or the evaluation point x.
SolutionOutputThe final calculated value(s) for x or the evaluated function result.
Primary Value / Root 1OutputThe first root of the equation or the primary evaluated result.
Secondary RootOutputThe second root, applicable only for quadratic equations.
Discriminant (Δ)OutputThe value of b² − 4ac, used to determine the nature of quadratic roots.
Step-by-Step DerivationOutputA detailed breakdown of the mathematical operations used to reach the solution.

Frequently Asked Questions

What does the discriminant tell you about a quadratic equation?

The discriminant (Δ = b² − 4ac) determines the number and type of roots for a quadratic equation. If it is positive, there are two distinct real roots. If it is zero, there is one repeated real root. If it is negative, there are two complex roots.

What happens if a linear equation has no solution?

A linear equation has no solution if simplifying it results in a mathematically impossible statement, such as 0 = 5. This occurs when the coefficients of x on both sides are equal, but the constants are different, meaning the lines are parallel and never intersect.

Can this calculator handle complex numbers?

Yes, if a quadratic equation has a negative discriminant, the calculator will compute and display the complex roots in the format of a real part plus or minus an imaginary part (e.g., -1 ± 2i).

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.