Maths Calculators

Linear Equation Calculator

Solve linear equations online by entering the coefficients and constants in the form ax + b = cx + d.

Bluehost

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

Coefficient of x
Constant term

Right side: cx + d

Coefficient of x
Constant term
2x + 3 = x + 7

Solution

    The result is calculated entirely in your browser. No equation data is sent to a server.

    F-Secure

    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.

    1

    Quick Solutions

    Calculate the value of x immediately after entering the equation values.

    2

    Step-by-Step Working

    See how the equation is rearranged to isolate x and reach the final answer.

    3

    Two-Sided Equations

    Solve equations with x terms and constants on both sides of the equals sign.

    4

    Decimal Values

    Use decimal coefficients and constants when working with non-integer equations.

    5

    Special Cases

    Identifies equations with no solution or infinitely many solutions when the x terms cancel.

    6

    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.

    1. Enter coefficient a — Enter the number multiplying x on the left side of the equation.
    2. Enter constant b — Enter the constant on the left side of the equation.
    3. Enter coefficients c and d — Enter the coefficient of x and constant on the right side.
    4. 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 of YesTools
    Created by

    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 YesTools

    Frequently Asked Questions

    A linear equation is an equation in which the variable has a maximum exponent of one. A common form is ax + b = c or, more generally, ax + b = cx + d.
    Enter the coefficients and constants for the equation ax + b = cx + d. The calculator rearranges the equation, collects the x terms and constants, and calculates the value of x.
    The calculator solves linear equations in the form ax + b = cx + d. You can use zero for a coefficient or constant when a particular term is not present.
    If the x terms cancel and the remaining constants are unequal, the equation has no solution. If both sides are identical after simplification, the equation has infinitely many solutions.
    Yes. The calculator accepts positive numbers, negative numbers and decimal values for coefficients and constants.
    Yes. The YesTools Linear Equation Calculator is free to use and runs directly in your web browser without requiring an account or software installation.

    Explore More Free Tools

    Explore the YesTools collection of free online tools, calculators, converters, generators and utilities.

    Browse All Categories
    hide.me VPN