Linear Equation Solver
Solve your first-degree equation and get the value of x alongside the rearranged equation.
Quick answer
Solve your first-degree equation and get the value of x alongside the rearranged equation. Formula: Collecting variable terms on the left and constants on the right turns a first-degree equation into (a-c)x=d-b.
Left coefficient a: 2, Left constant b: 3, Right coefficient c: 1, Right constant d: 7 → Solution x: 4.
Results update as you type.
How it works
Collecting variable terms on the left and constants on the right turns a first-degree equation into (a-c)x=d-b. Dividing by the remaining coefficient gives a single solution. The rearranged equation is shown so the sign changes remain visible. The coefficients may be negative, decimal or zero, but a must differ from c. When the variable terms cancel, the equation has either no solution or infinitely many solutions; this single-solution tool leaves the results unavailable. Use it to check algebra exercises, solve a price equality or find the crossing point of two affine expressions. Both sides may contain the unknown, unlike a simple proportionality or percentage calculation. Keep the sign attached to each constant when moving from a written exercise into the fields. Substitute the computed value into both sides and confirm equality. Do not divide before collecting all occurrences of x. Inputs are Left coefficient a, Left constant b, Right coefficient c, Right constant d. Results show Solution x, Rearranged equation. 2x+3=x+7 becomes x=4.
ax+b=cx+d ⇒ x=(d−b)/(a−c)
Collecting variable terms on the left and constants on the right turns a first-degree equation into (a-c)x=d-b. Dividing by the remaining coefficient gives a single solution. The rearranged equation is shown so the sign changes remain visible. The calculation uses ax+b=cx+d ⇒ x=(d−b)/(a−c).
Source:OpenStax: Algebra and Trigonometry; standard algebraic identities
We review all our tools from time to time to ensure accuracy.
Worked example
How to use this calculator
- 1
Enter your values
Enter left coefficient a, left constant b, right coefficient c and right constant d.
- 2
Adjust the options
Fine-tune any options to match your situation.
- 3
Read your result
Solution x updates instantly as you type — no button to press.
Frequently asked questions
How does the linear equation solver calculation work?
Collecting variable terms on the left and constants on the right turns a first-degree equation into (a-c)x=d-b. Dividing by the remaining coefficient gives a single solution. The rearranged equation is shown so the sign changes remain visible. The model is written as ax+b=cx+d ⇒ x=(d−b)/(a−c).
Which inputs and units should I use?
Inputs are Left coefficient a, Left constant b, Right coefficient c, Right constant d. Results show Solution x, Rearranged equation. Keep the sign attached to each constant when moving from a written exercise into the fields. Substitute the computed value into both sides and confirm equality. Do not divide before collecting all occurrences of x.
What are the limits of this calculation?
The coefficients may be negative, decimal or zero, but a must differ from c. When the variable terms cancel, the equation has either no solution or infinitely many solutions; this single-solution tool leaves the results unavailable. Keep the sign attached to each constant when moving from a written exercise into the fields. Substitute the computed value into both sides and confirm equality. Do not divide before collecting all occurrences of x.
When is this result useful?
Use it to check algebra exercises, solve a price equality or find the crossing point of two affine expressions. Both sides may contain the unknown, unlike a simple proportionality or percentage calculation. Collecting variable terms on the left and constants on the right turns a first-degree equation into (a-c)x=d-b. Dividing by the remaining coefficient gives a single solution. The rearranged equation is shown so the sign changes remain visible.
How can I check the worked example?
2x+3=x+7 becomes x=4. Keep the sign attached to each constant when moving from a written exercise into the fields. Substitute the computed value into both sides and confirm equality. Do not divide before collecting all occurrences of x. Collecting variable terms on the left and constants on the right turns a first-degree equation into (a-c)x=d-b. Dividing by the remaining coefficient gives a single solution. The rearranged equation is shown so the sign changes remain visible.
More Math calculators
Related calculators
Fraction Calculator
Add, subtract, multiply or divide two fractions.
System of Equations Calculator (2×2)
Solve two linear equations in two unknowns with Cramer's rule.
Prime Factorization Calculator
Break a number into its prime factors.
Calculated with HS Calculadora · https://hscalculadora.com/en/math/linear-equation-calculator