Linear Equation Calculator
Solve linear equations online by entering the coefficients and constants in the form ax + b = cx + d.
Linear Equation Calculator
Enter the values for a, b, c and d to solve the linear equation ax + b = cx + d.
Left side: ax + b
Right side: cx + d
Solution
The result is calculated entirely in your browser. No equation data is sent to a server.
What Is a Linear Equation Calculator?
A linear equation calculator is an online tool for finding the value of an unknown variable in a linear equation. This calculator solves equations in the form ax + b = cx + d, where x is the unknown variable and a, b, c and d are numerical values.
Linear equations are commonly used in algebra, mathematics, science, engineering, finance and other subjects where relationships between quantities can be represented using a first-degree equation. The calculator provides both the solution and the working used to obtain it.
Why Use the Linear Equation Calculator?
This free linear equation calculator provides a quick way to solve equations without manually rearranging each term. It supports positive numbers, negative numbers and decimal values.
Quick Solutions
Calculate the value of x immediately after entering the equation values.
Step-by-Step Working
See how the equation is rearranged to isolate x and reach the final answer.
Two-Sided Equations
Solve equations with x terms and constants on both sides of the equals sign.
Decimal Values
Use decimal coefficients and constants when working with non-integer equations.
Special Cases
Identifies equations with no solution or infinitely many solutions when the x terms cancel.
Free to Use
Use the calculator directly in your browser without installing software or creating an account.
How to Use the Linear Equation Calculator
Enter the four numerical values that make up the equation ax + b = cx + d, then calculate the result.
- Enter coefficient a — Enter the number multiplying x on the left side of the equation.
- Enter constant b — Enter the constant on the left side of the equation.
- Enter coefficients c and d — Enter the coefficient of x and constant on the right side.
- Select Solve Equation — The calculator rearranges the equation and displays the solution for x and the working.
How to Solve a Linear Equation
A linear equation contains a variable raised to the first power. One common form is ax + b = cx + d. To solve it, the terms containing x are collected on one side of the equation and the constant terms are collected on the other side. The coefficient of x is then divided out to determine the value of x.
For example, consider the equation 2x + 3 = x + 7. Subtracting x from both sides gives x + 3 = 7. Subtracting 3 from both sides then gives x = 4. The calculator performs this rearrangement automatically and displays the relevant steps.
Linear Equation Formula
For an equation in the form ax + b = cx + d, the general solution is x = (d − b) ÷ (a − c), provided that a and c are not equal. This formula comes from moving the x terms to one side and the constants to the other side.
Examples of Linear Equations
Examples of linear equations include 2x + 3 = 11, 5x − 4 = 2x + 8, and 0.5x + 6 = 10. Equations can contain negative coefficients, negative constants and decimal values while remaining linear as long as the variable is only raised to the first power.
Linear Equation Calculator Results
If the coefficient of x differs between the two sides, the calculator returns one unique value for x. If the x coefficients are equal but the constants are different, the equation has no solution. If both the x coefficients and constants are equal, the equation is true for every value of x and therefore has infinitely many solutions.
The calculator uses JavaScript running locally in your browser to perform the calculation. It accepts integers, negative numbers and decimal numbers. It is intended for mathematical calculations and educational use; results should still be checked when used in formal academic or professional work.
James William Steven Parker
Creator & Developer of YesTools
James William Steven Parker is a web developer and technology professional with extensive experience in web development, web design, SEO, web hosting, systems analysis and cybersecurity. He created YesTools to provide fast, practical and free online tools for everyday tasks and technical work.
Learn more about James and YesToolsFrequently Asked Questions
Explore More Free Tools
Explore the YesTools collection of free online tools, calculators, converters, generators and utilities.
Browse All Categories

