Skip to main content

Simple equation solver (ax + b = c)

Linear equations and algebra concepts illustrated with mathematical symbols and formulas

Linear Equation Solver — Solve Equations of the Form ax + b = c

This free linear equation solver helps you solve equations of the form ax + b = c for x, where a, b, and c are numbers. Simply enter the coefficients and get the solution instantly. Whether you're checking homework, solving real-world problems, or learning algebra for the first time, this tool provides accurate answers with clear explanations.

Linear equations are the foundation of algebra. They appear in countless real-world situations, from calculating distances and speeds to determining measurements and proportions. Understanding how to solve them is essential for anyone studying mathematics, science, engineering, or any field that uses quantitative analysis.

Solution will appear here.

1. Understanding Linear Equations

A linear equation in one variable is an equation of the form ax + b = c. Solving it means finding the value of x that makes the equation true. The word "linear" refers to the fact that the variable x appears only to the first power — no x², no √x, no other complications.

x = (c - b) / a     (where a ≠ 0)

Linear equations are called "linear" because their graph is a straight line when plotted. The solution to ax + b = c is the x-coordinate where the line y = ax + b crosses the horizontal line y = c.

2x + 5 = 11 → x = 3

Subtract 5 from both sides: 2x = 6, then divide by 2: x = 3

For equations with two variables or more complex systems, try our linear system solver. For quadratic equations, see our quadratic equation solver.

2. How the Calculator Works

The calculator solves the equation using the standard algebraic method through a series of clear steps:

Step 1: Takes values of a, b, and c as input from the three fields

All values can be positive, negative, whole numbers, or decimals.

Step 2: Checks that a ≠ 0

If a equals zero, the equation is no longer a linear equation in x. The calculator alerts you to this special case.

Step 3: Calculates x using the formula x = (c - b) / a

This formula is derived by isolating x: subtract b from both sides (c - b = ax), then divide both sides by a.

Step 4: Displays the solution instantly with full precision

The result appears immediately below the input fields with color-coded feedback.

3. Detailed Examples

Let's explore several examples that demonstrate different scenarios you might encounter when solving linear equations.

3.1 Basic Positive Coefficients

1. 3x + 6 = 15 → x = 3

Subtract 6 from both sides: 3x = 9. Divide by 3: x = 3. Check: 3(3) + 6 = 15 ✓

2. 4x + 0 = 12 → x = 3

When b = 0, the formula simplifies to x = c/a = 12/4 = 3.

3.2 Negative Coefficients

3. 5x - 10 = 20 → x = 6

Note that b = -10 here. x = (20 - (-10)) / 5 = 30/5 = 6.

4. -2x + 8 = 4 → x = 2

x = (4 - 8) / (-2) = -4/(-2) = 2. Check: -2(2) + 8 = 4 ✓

3.3 Fractional Solutions

5. 2x + 5 = 10 → x = 2.5

x = (10 - 5) / 2 = 5/2 = 2.5. Not all solutions are whole numbers.

3.4 Decimal Coefficients

6. 2.5x + 3.75 = 11.25 → x = 3

x = (11.25 - 3.75) / 2.5 = 7.5 / 2.5 = 3. The calculator handles decimals with precision.

4. Why Linear Equations Matter

Linear equations are fundamental in algebra, physics, geometry, and everyday problem-solving. They are the building blocks for more advanced equations and functions. Without mastery of linear equations, higher mathematics would be inaccessible.

๐Ÿ”ฌ Physics: Solving for velocity, distance, and time in constant-speed motion problems

๐Ÿ“ Geometry: Finding unknown side lengths in perimeter and angle problems

๐Ÿ”ข Everyday Math: Solving for unknown quantities in measurement and proportion problems

๐ŸŽ“ Algebra: Building foundational skills for systems of equations, quadratics, and functions

⚙️ Engineering: Modeling linear relationships in circuits, structures, and control systems

๐Ÿ“Š Data Analysis: Understanding linear trends and making predictions

5. Real-World Applications

Linear equations are used constantly in daily life and across professions. Here are detailed examples:

๐Ÿš— Travel Planning: Calculating time needed to reach a destination at a constant speed (distance = rate × time).

๐Ÿณ Cooking: Scaling recipe ingredients proportionally (2x + 1 = 5 means doubling plus one more).

๐Ÿ—️ Construction: Determining material quantities for linear measurements.

๐Ÿ“ฑ Technology: Calculating data usage rates and storage requirements.

๐Ÿ”ฌ Research: Solving for unknown variables in experimental formulas.

๐ŸŽจ Design: Calculating proportional dimensions in layouts and blueprints.

๐Ÿ“Š Business Analytics: Analyzing linear trends in data and making projections.

๐Ÿงช Laboratory Work: Computing concentrations and dilutions in experiments.

6. Step-by-Step Solving Methods

There are several approaches to solving linear equations. The key is isolating the variable x on one side of the equation.

Method 1: Standard Algebraic Method

Example: Solve 3x + 7 = 19

Step 1: Subtract 7 from both sides: 3x = 12

Step 2: Divide both sides by 3: x = 4

Step 3: Check: 3(4) + 7 = 19 ✓

Method 2: Using the Formula Directly

Example: Solve 5x - 3 = 17

Identify a = 5, b = -3, c = 17

Apply formula: x = (17 - (-3)) / 5 = 20/5 = 4

Check: 5(4) - 3 = 17 ✓

Method 3: Mental Math for Simple Cases

Example: Solve 2x + 4 = 10

Ask: "What number times 2, plus 4, equals 10?"

10 - 4 = 6, so 2x = 6, therefore x = 3

This approach works well for simple whole-number solutions.

7. Special Cases in Linear Equations

While most linear equations have exactly one solution, some special cases exist:

Case Example Result Explanation
Standard Case 2x + 3 = 11 x = 4 One unique solution
a = 0, b = c 0x + 5 = 5 Infinite solutions Any value of x works
a = 0, b ≠ c 0x + 5 = 8 No solution No value of x works
Fractional Solution 2x + 4 = 9 x = 2.5 Solution is a fraction
Negative Solution 3x + 12 = 3 x = -3 Solution is negative

8. Common Mistakes to Avoid

Even with a straightforward operation like solving linear equations, certain mistakes occur frequently. Being aware of these can help you avoid them.

Mistake 1: Forgetting to subtract b before dividing by a

The correct order is subtract first, then divide. For 3x + 6 = 15: first 15 - 6 = 9, then 9/3 = 3.

Mistake 2: Using a = 0

If a = 0, the equation becomes b = c, which is not a linear equation in x. The equation either has no solution or infinite solutions.

Mistake 3: Misplacing signs with negative coefficients

For -2x + 8 = 4, carefully compute x = (4 - 8)/(-2) = 2. Keep track of all negative signs.

Mistake 4: Dividing by a before subtracting b

The order matters. (15 - 6) / 3 = 3 is correct, but 15/3 - 6 = -1 is incorrect.

Mistake 5: Forgetting to check the solution

Always substitute your answer back into the original equation to verify it's correct.

Important Reminder: Always isolate x by first subtracting b from both sides, then divide by a.

Correct Approach: x = (c - b) / a

9. Frequently Asked Questions

If a = 0, the equation is not linear. The calculator will alert you that division by zero is invalid. When a = 0, the equation simplifies to b = c, which either has no solution or infinite solutions depending on the values.

Yes. The calculator handles negative coefficients and constants correctly. For example, if your equation is -3x - 7 = 14, enter a = -3, b = -7, c = 14.

Yes. Decimals are supported in the inputs and solution. For example, enter a = 2.5, b = 3.75, c = 11.25 to solve 2.5x + 3.75 = 11.25.

Solving for x means finding the specific numerical value that makes the equation true when substituted back in. It answers: "What number, when multiplied by a and added to b, equals c?"

Substitute the solution back into the original equation. If ax + b equals c, the solution is correct. For example, if x = 3 for 2x + 5 = 11, check: 2(3) + 5 = 11 ✓

A linear equation has the variable to the first power only (ax + b = c). A quadratic equation includes the variable squared (ax² + bx + c = 0). Linear equations have one solution, while quadratics can have two. See our quadratic equation solver for more advanced equations.

Conclusion

Solving linear equations is a fundamental math skill. This calculator provides quick and accurate solutions for equations of the form ax + b = c, helping with homework, algebra problems, and real-world applications.

Whether you're a student practicing algebra, a professional needing quick calculations, or someone refreshing their math skills, this solver eliminates the guesswork and shows you the correct answer instantly. Bookmark this page for the next time you need to solve a linear equation quickly and accurately.

Remember that while this tool is incredibly helpful, practicing solving equations by hand will deepen your understanding of algebraic manipulation. Try solving simple equations mentally first, then verify with the calculator.

Readers who wish to continue practicing and reinforce what they've learned can explore the companion learning resource for guided exercises.