Put Equation in Y Mx+b Calculator
The y = mx + b equation is the standard form for linear equations in algebra. This calculator helps you input your equation and visualize the relationship between variables.
What is the y = mx + b equation?
The y = mx + b equation represents a straight line on a graph, where:
- y is the dependent variable (output)
- m is the slope of the line (rate of change)
- x is the independent variable (input)
- b is the y-intercept (value of y when x = 0)
This equation is fundamental in algebra, physics, and engineering for modeling linear relationships between two variables.
How to use this calculator
- Enter your slope (m) value in the first field
- Enter your y-intercept (b) value in the second field
- Click "Calculate" to see the equation and graph
- Use the "Reset" button to clear all values
Note
All calculations are performed locally in your browser. No data is sent to our servers.
Formula explained
Equation Formula
y = mx + b
- y = dependent variable
- m = slope (rate of change)
- x = independent variable
- b = y-intercept (value when x = 0)
The formula shows how the dependent variable (y) changes as the independent variable (x) changes, based on the slope (m) and y-intercept (b).
Worked examples
Example 1: Basic Linear Equation
Given the equation y = 2x + 3:
- Slope (m) = 2
- Y-intercept (b) = 3
This means for every 1 unit increase in x, y increases by 2 units, and when x = 0, y = 3.
Example 2: Negative Slope
Given the equation y = -1.5x + 4:
- Slope (m) = -1.5
- Y-intercept (b) = 4
This shows a negative relationship where y decreases as x increases, and when x = 0, y = 4.
FAQ
What does the slope (m) represent?
The slope (m) represents the rate of change between the dependent variable (y) and the independent variable (x). It shows how much y changes for each unit change in x.
What is the y-intercept (b)?
The y-intercept (b) is the value of y when x equals zero. It's where the line crosses the y-axis on a graph.
Can this calculator handle negative values?
Yes, the calculator accepts both positive and negative values for both the slope (m) and y-intercept (b).