Need to solve linear equations? Our free Linear Equation Solver handles all forms and calculations. Solve one-variable equations for x, convert between standard form, slope-intercept form, and point-slope form. Find slope and y-intercept from any equation, determine parallel and perpendicular lines, and generate graphs instantly. Perfect for algebra students learning linear functions, teachers creating lesson materials, engineers calculating rates of change, or anyone working with linear relationships. The calculator shows step-by-step solutions, handles fractions and decimals, and provides clear explanations of the concepts. All calculations happen instantly in your browser with interactive graphs. No signups, no limits, completely free.
A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and a single variable raised to the first power. Linear equations graph as straight lines and are fundamental to algebra, calculus, and applied mathematics. Our calculator supports all standard forms of linear equations: One-Variable Form (ax + b = c): Solve for x. Example: 3x + 5 = 20 → x = 5. Slope-Intercept Form (y = mx + b): m represents slope, b represents y-intercept. Most common form for graphing and analysis. Point-Slope Form (y - y₁ = m(x - x₁)): Useful when you know the slope and one point on the line. Standard Form (Ax + By = C): Useful for finding x and y intercepts. The calculator converts between these forms, solves for any variable, calculates slope from two points, finds equations of parallel and perpendicular lines, and generates graphs with key points labeled.
Our solver handles all linear equation forms including standard form (ax + b = c), slope-intercept form (y = mx + b), and point-slope form. It provides step-by-step solutions showing each algebraic manipulation, calculates slope and y-intercept automatically, finds equations of parallel and perpendicular lines, supports fraction and decimal coefficients, converts between equation forms seamlessly, and generates visual graphs with labeled intercepts and key points.
Using the Linear Equation Solver is straightforward: First, enter your equation or select what you want to calculate. Input a one-variable equation (like 2x + 5 = 13), enter slope-intercept form (y = 2x + 3), input two points to find slope and equation, or select parallel/perpendicular line options. Next, choose the operation. The calculator can: Solve for x in one-variable equations, Convert between different forms (standard to slope-intercept, etc.), Calculate slope from two points, Find x and y intercepts, Determine parallel and perpendicular line equations, Generate graphs with key points labeled. Then click Solve. The calculator processes your input using algebraic methods, applies appropriate formulas based on the form, and shows step-by-step work. Finally, review comprehensive results. The output includes: The solution (value of x or equation), Step-by-step algebraic work, Slope and intercept values, Graph showing the line and key points, Equations of parallel/perpendicular lines if requested, Conversion to different forms. Copy any result or graph for use in homework, lesson plans, or professional work.
Students use the linear equation solver to check homework answers and understand step-by-step solutions for algebra assignments. Teachers generate practice problems with detailed solutions for classroom examples and worksheets. Tutors explain concepts visually with graphs, helping students identify where they make sign errors or combine terms incorrectly. Engineers calculate rates of change in design problems and convert between different equation representations. Physics students solve motion equations, Ohmmm's Law problems, and Hooke's Law applications. Economics students work with supply and demand curves, cost functions, and break-even analysis. Test prep students practice SAT, ACT, and GRE linear equation problems with instant feedback. Developers implement linear interpolation and graphics algorithms with verified calculations. Data analysts find trend lines and calculate rates of change in datasets. Parents help children with homework while refreshing their own algebra skills using clear explanations.
Step-by-Step Learning - Understanding linear equations requires seeing the process. Our calculator shows each step clearly, making it an excellent learning tool for students and a verification tool for teachers. Multiple Form Support - Whether you're working with standard form, slope-intercept form, or point-slope form, the calculator handles them all and converts between them seamlessly. Graph Visualization - Visual learners benefit from seeing the graphed line with intercepts clearly marked. The interactive graph helps connect algebraic and geometric representations. Parallel and Perpendicular Lines - Finding equations of lines with specific relationships is error-prone. The calculator applies the correct slope relationships automatically. Fraction and Decimal Support - Linear equations often involve fractions. The calculator handles them precisely and can convert between fractional and decimal representations. Error Detection - Common mistakes like sign errors or distribution errors are easier to spot when you can see the correct step-by-step process. Compare your work to identify mistakes. Time Saving - Manual calculations, especially with fractions or complex coefficients, take time. Get instant accurate results to focus on higher-level problem solving. Free & Accessible - No expensive graphing calculator or software needed. Access professional-grade linear equation solving from any browser, completely free.
Algebra Students - Middle school, high school, and college students learning linear equations use this tool for homework help, exam preparation, and concept mastery. See step-by-step solutions to understand the process. Math Teachers - Create lesson examples, generate practice problems with solutions, and verify textbook answers. Use the graph feature to visually demonstrate concepts. Tutors and Educators - Help students understand linear equations with clear step-by-step explanations and visual graphs. Identify where students are making mistakes. Engineers - Calculate rates of change, slopes in design problems, and linear approximations. Convert between different representations of linear relationships. Physics Students - Linear equations appear throughout physics (motion at constant velocity, Ohm's law, Hooke's law). Solve and graph these relationships quickly. Economics and Business Students - Work with cost functions, revenue models, supply and demand curves. Understand break-even analysis and linear programming. Computer Science Students - Linear equations are fundamental to graphics, machine learning algorithms, and numerical methods. Verify calculations and understand relationships. Standardized Test Prep Students - SAT, ACT, GRE, and other tests feature linear equation problems. Practice with instant feedback and clear explanations. Parents Helping with Homework - Refresh your algebra skills and help your children with homework using clear explanations and visual aids.
Getting started with the Linear Equation Solver is straightforward. Enter your equation in the input field using standard mathematical notation—type 2x + 5 = 13 to solve for x, or y = 2x + 3 for slope-intercept form. Select the operation you want: solve for x, find slope and intercept, convert between forms, or graph the equation. For two points, enter them as (2, 3) and (5, 11) to find slope and equation. Click Solve to see instant results with step-by-step work. Review each step of the algebraic solution to understand the process. View the graph showing the line with intercepts clearly marked. Copy results for your homework or export the graph for presentations. Use the conversion feature to switch between standard form, slope-intercept form, and point-slope form. Check your work by substituting solutions back into original equations.
Always write equations clearly using standard notation—use 2*x or 2x for multiplication, and include equals signs. For fractions, use parentheses: (1/2)x + 3 = 7. Check your solution by substituting it back into the original equation—both sides should equal. When graphing, identify at least two points to ensure accuracy, with the y-intercept and one other point being ideal. For word problems, define your variable first, then translate the words into an equation before solving. Keep track of negative signs carefully—distribution errors with negatives are the most common mistake. Simplify both sides of an equation first by distributing and combining like terms before isolating the variable. Use the calculator to verify your manual work, not replace the learning process—understanding the steps matters more than the answer. For parallel lines, remember slopes are equal; for perpendicular lines, slopes are negative reciprocals. Document your work step-by-step to identify where errors occur. Practice with varied problem types to build comprehensive understanding.
This Linear Equation Solver handles linear equations specifically—equations where variables are raised only to the first power. It cannot solve quadratic equations (x²), cubic equations (x³), or higher-order polynomials. For systems of equations, use our System of Equations Calculator. The solver works with one or two variables; complex multivariable linear programming problems are not supported. While the graph shows the line accurately, detailed zooming and panning features are limited compared to dedicated graphing software. Step-by-step solutions show standard algebraic methods; alternative solution paths may exist. The calculator assumes real number solutions; complex number results are not displayed. Verification by substitution is provided, but users should understand that rounding in decimal answers may hide minor precision differences. Word problem interpretation must be done manually—the calculator solves the equation you enter, not the problem you read. Ensure proper parentheses usage for fractions and complex expressions to get correct results.
A linear equation is an algebraic equation where each term is either a constant or the product of a constant and a single variable raised to the first power. Linear equations graph as straight lines. Standard Form: ax + b = c, where a, b, and c are constants, and x is the variable. Example: 2x + 3 = 7. Slope-Intercept Form: y = mx + b, where m is the slope and b is the y-intercept. Example: y = 2x + 3. Point-Slope Form: y - y₁ = m(x - x₁), where m is slope and (x₁, y₁) is a point on the line. General Form: Ax + By = C, where A, B, and C are constants. Key Characteristics: The highest power of any variable is 1 (no x², x³, etc.). The graph is always a straight line. There is exactly one solution for one-variable equations. All terms are separated by + or - signs (no variables in denominators, no products of variables). Linear equations are fundamental to algebra and appear in countless real-world applications from physics to economics.
Solving a linear equation means isolating the variable x. Follow these steps: Step 1 - Simplify both sides: Remove parentheses using distributive property, Combine like terms. Step 2 - Move variable terms to one side: Add or subtract to get all x terms on the left, Add or subtract to get all constants on the right. Step 3 - Isolate the variable: Divide both sides by the coefficient of x. Example: Solve 3x + 7 = 22. Step 1: Already simplified. Step 2: Subtract 7 from both sides: 3x = 15. Step 3: Divide by 3: x = 5. Example with variables on both sides: Solve 4x - 3 = 2x + 9. Subtract 2x from both sides: 2x - 3 = 9. Add 3 to both sides: 2x = 12. Divide by 2: x = 6. Example with fractions: Solve (1/2)x + 4 = 10. Subtract 4: (1/2)x = 6. Multiply both sides by 2: x = 12. Our calculator shows each step clearly, making it easy to learn the process and check your work.
Slope-intercept form is y = mx + b, where: m = slope (steepness of the line), b = y-intercept (where the line crosses the y-axis), (x, y) = any point on the line. Understanding Slope (m): Positive slope: line goes up from left to right. Negative slope: line goes down from left to right. Zero slope: horizontal line. Undefined slope: vertical line (not a function). Larger absolute value = steeper line. Understanding Y-Intercept (b): The point where x = 0, always written as (0, b). Where the line crosses the y-axis. Converting to Slope-Intercept Form: From standard form (ax + by = c): Solve for y. Example: 2x + 3y = 12 → 3y = -2x + 12 → y = (-2/3)x + 4. From point-slope form: Distribute and simplify. Example: y - 3 = 2(x - 1) → y - 3 = 2x - 2 → y = 2x + 1. Using the Form: Given y = 2x + 3: Slope is 2 (rise 2, run 1), Y-intercept is (0, 3), To find x-intercept, set y = 0: 0 = 2x + 3 → x = -1.5. Our calculator instantly converts between forms and graphs the line.
You can find a line's equation given various combinations of information: Given Slope and Y-Intercept: Use slope-intercept form directly. Example: m = 3, b = -2 → y = 3x - 2. Given Slope and a Point: Use point-slope form, then simplify. Example: m = 2, point (3, 5). y - 5 = 2(x - 3) → y - 5 = 2x - 6 → y = 2x - 1. Given Two Points: First find slope: m = (y₂ - y₁) / (x₂ - x₁). Then use point-slope with either point. Example: (2, 3) and (4, 7). m = (7-3)/(4-2) = 4/2 = 2. Using (2, 3): y - 3 = 2(x - 2) → y = 2x - 1. Given X and Y Intercepts: Use intercept form: x/a + y/b = 1, where a is x-intercept, b is y-intercept. Example: x-intercept = 3, y-intercept = 6. x/3 + y/6 = 1 → Multiply by 6: 2x + y = 6 → y = -2x + 6. Given Parallel to Another Line: Parallel lines have equal slopes. Use the given slope and a point. Given Perpendicular to Another Line: Perpendicular slopes are negative reciprocals (m₁ × m₂ = -1). Example: Line perpendicular to y = 2x + 1 has slope m = -1/2. Our calculator handles all these cases automatically.
Parallel and perpendicular lines have special slope relationships: Parallel Lines: Never intersect, Have identical slopes (m₁ = m₂), Different y-intercepts (otherwise they'd be the same line). Example: y = 2x + 3 and y = 2x - 5 are parallel (both have slope 2). Perpendicular Lines: Intersect at 90° angles, Have slopes that are negative reciprocals (m₁ × m₂ = -1), If one slope is m, the perpendicular slope is -1/m. Examples: If m₁ = 2, then m₂ = -1/2. If m₁ = -3, then m₂ = 1/3. If m₁ = 1/2, then m₂ = -2. Special Cases: Horizontal line (m = 0) is perpendicular to vertical line (undefined slope). Finding Parallel Line Through a Point: Use same slope as original line, substitute point to find new y-intercept. Example: Find line parallel to y = 3x + 2 through (1, 5). Slope = 3. 5 = 3(1) + b → b = 2. Answer: y = 3x + 2. Finding Perpendicular Line Through a Point: Use negative reciprocal slope, substitute point to find new y-intercept. Example: Find line perpendicular to y = 2x + 1 through (2, 3). Slope = -1/2. 3 = (-1/2)(2) + b → 3 = -1 + b → b = 4. Answer: y = (-1/2)x + 4. Our calculator verifies parallel/perpendicular relationships and finds equations satisfying these conditions.
Graphing linear equations can be done several ways: Using Slope and Y-Intercept (y = mx + b): Start at the y-intercept (0, b) on the y-axis. Use slope m = rise/run to find another point. Draw line through the points. Example: y = 2x + 1. Start at (0, 1). Slope 2 = 2/1, so rise 2, run 1 → next point at (1, 3). Draw line through (0, 1) and (1, 3). Using X and Y Intercepts: Find x-intercept (set y = 0, solve for x). Find y-intercept (set x = 0, solve for y). Plot both intercepts and draw line. Example: 2x + 3y = 6. x-intercept: 2x = 6 → x = 3 → (3, 0). y-intercept: 3y = 6 → y = 2 → (0, 2). Plot (3, 0) and (0, 2), draw line. Using a Table of Values: Choose x values, calculate y for each. Plot the (x, y) points. Draw line through points. Example: y = x - 2. x = 0 → y = -2. x = 1 → y = -1. x = 2 → y = 0. Plot (0, -2), (1, -1), (2, 0), draw line. Using Two Points: Pick any two x values, find corresponding y values. Plot both points and draw line. Our calculator provides the graph automatically, showing intercepts, slope, and key points.
Avoid these common errors: Sign Errors: Forgetting to distribute negative signs. Example: -(2x - 3) = -2x + 3 (not -2x - 3). Adding instead of subtracting when moving terms. Combining Unlike Terms: Trying to combine x terms with constants. 2x + 3 ≠ 5x. Only combine 2x + 3x = 5x. Division Errors: Dividing only one term instead of all terms. Example: 2x + 6 = 12 → x + 6 = 6 is wrong. Should be: 2x = 6 → x = 3. Or: (2x + 6)/2 = 12/2 → x + 3 = 6 → x = 3. Fraction Confusion: Not finding common denominators. Incorrectly cross-multiplying when not appropriate. Distributive Property Errors: Forgetting to distribute to all terms inside parentheses. Example: 2(x + 3) = 2x + 6 (not 2x + 3). Order of Operations: Adding before multiplying when distribution is needed. Variable Isolation: Not getting variable completely alone. Example: Leaving answer as 2x = 8 instead of x = 4. Check Your Answer: Always substitute your solution back into the original equation to verify. Our calculator shows step-by-step work, helping you identify where mistakes occur.
Linear equations have countless real-world applications: Business & Economics: Cost functions: C = mx + b (fixed cost + variable cost per unit). Revenue and profit analysis. Break-even point calculations. Supply and demand curves. Example: A company has fixed costs of $1000 and variable cost of $5 per unit. Cost equation: C = 5x + 1000. Physics & Engineering: Distance = rate × time (d = rt). Ohm's Law: V = IR (voltage = current × resistance). Hooke's Law: F = kx (force = spring constant × displacement). Conversion between units (F = (9/5)C + 32 for temperature). Everyday Life: Cell phone plans with base fee + per-minute charges. Taxi fares with initial charge + per-mile rate. Recipe scaling (ingredients scale linearly with servings). Temperature conversion. Sports: Calculating pace (minutes per mile). Batting averages over time. Points scoring rates. Construction: Material estimations. Roof pitch calculations. Grade/slope calculations for drainage. Computer Graphics: Line drawing algorithms. Animation interpolation. Color gradients. Data Analysis: Trend lines in scatter plots. Linear regression for predictions. Rate of change calculations. Our calculator helps with all these applications by solving equations, finding slopes, and converting between forms.