Two coefficients define a straight line. Enter slope a and intercept b to get the equation, x-intercept (zero), y-intercept, and whether the function is increasing or decreasing.
Linear function with intercept 3
Two coefficients define a straight line. Enter slope a and intercept b to get the equation, x-intercept (zero), y-intercept, and whether the function is increasing or decreasing.
With 3 selected the arithmetic takes a different route. The intercept slides the whole line up or down without tilting it, so the root moves while the slope stays exactly where it was. This page opens the calculator with 3 already selected, so only the remaining fields are left to fill in. The remaining fields are yours to fill in, and the result follows once you press calculate.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
The simplest function that still tells a story
A linear function f(x) = ax + b produces a straight line on any graph. Two numbers - the slope a and the y-intercept b - are enough to pin down every property of that line: where it crosses both axes, how steep it is, and whether it climbs or falls. This calculator extracts all four key facts from those two coefficients.
Key formulas
Equation: f(x) = ax + b (slope-intercept form)
X-intercept (zero): x0 = -b / a (solve ax + b = 0)
Y-intercept: (0, b) - just read coefficient b
Slope: a > 0 = increasing, a < 0 = decreasing
Slope reference table
| Slope (a) | Meaning | Real-world analogy |
|---|---|---|
| a = 0.5 | Gentle rise | Wheelchair ramp (1:12 ratio = a = 0.08) |
| a = 1 | 45-degree angle | 1 unit up for every 1 unit right |
| a = 3 | Steep rise | Aggressive stock price trend |
| a = -1 | 45-degree downhill | Phone battery draining steadily |
| a = -0.1 | Gentle decline | Slow depreciation of equipment |
Practical examples
The slope is the per-unit cost, b is the fixed cost
The classic linear function from physics class
Straight-line depreciation is literally a linear function
The zero tells you when the resource runs out
The x-intercept is the break-even point
Linear vs quadratic - when to use which
| Property | Linear f(x) = ax + b | Quadratic f(x) = ax2 + bx + c |
|---|---|---|
| Graph shape | Straight line | Parabola (curve) |
| Rate of change | Constant | Varies with x |
| Max zeros | 1 | 2 |
| Has vertex | No | Yes (min or max) |
| Use case | Constant rate (taxi, depreciation) | Acceleration, area, optimization |
FAQ
Related tools
Quadratic Function Calculator
When the relationship is not straight - parabolas, vertex, discriminant - Open calculator
Coordinate Calculator
Find the distance between two points on your line, or the midpoint of a segment - Open calculator
Proportion Calculator
Direct proportionality y = kx is a linear function through the origin (b = 0) - Open calculator
Percentage Calculator
Percentage increase is a linear operation: new = old + old * rate = old * (1 + rate) - Open calculator
See also
Calculator verified by the LiczGrupa.pl team
Content, formulas and results have been reviewed for accuracy and relevance by our team of specialists.

Reviewed by: Natalia Skrzek