Algebra • Coordinate Geometry

Line Equation from Slope & Point Calculator

Determine the point-slope, slope-intercept, and standard form equations of a line passing through a given coordinate point with a known slope, complete with interactive 2D Cartesian plotting.

|
Last Updated: September 2026
|
Verified Accurate: Mathematical & Computational Rigor
Coordinate Geometry • Linear Modeling

Line Equation from Slope & Point Calculator

Calculate point-slope, slope-intercept, and standard forms from a given slope m and point (x₁, y₁) with live 2D Cartesian graph plotting.

Presets:
Accepts fractions (e.g. -3/4)
Horizontal coordinate
Vertical coordinate
Slope-Intercept Form
y = 2x - 2
y = mx + b (Direct graphing form)
Point-Slope Form
y - 4 = 2(x - 3)
y - y₁ = m(x - x₁) (Source form)
Standard Form
2x - y = 2
Ax + By = C (Integer coefficients, A ≥ 0)
y-intercept (0, b): (0, -2)
x-intercept (x₀, 0): (1, 0)
Parallel Slope (m∥): 2
Perpendicular Slope (m⊥): -0.5 (-1/2)
Angle of Inclination (θ): 63.43°
Line Characteristics
Increasing line rising from bottom-left to top-right with positive slope.
2D Cartesian Graph
Point (x₁, y₁) y-int x-int
Cartesian Viewport [-10, +10]

Step-by-Step Algebraic Derivations

Full Proof Breakdown
Direct Answer & Overview
Verified Educational Guide

How to Find a Line Equation from Slope and Point

To find the equation of a straight line given a slope m and a point (x1, y1), plug the values directly into the point-slope formula: y - y1 = m(x - x1). To convert to slope-intercept form (y = mx + b), distribute the slope across the parentheses and isolate y on the left side: y = mx + (y1 - m*x1). The value b = y1 - m*x1 is the y-intercept where the line crosses the vertical axis at (0, b).

Primary Mathematical Formula Universal Equivalence of Linear Representations
Standard Equation
ƒ(x)
Q.E.D.
y−y1=m(x−x1)  ⟺  y=mx+(y1−mx1)  ⟺  Ax+By=Cy - y_1 = m(x - x_1) \iff y = mx + (y_1 - m x_1) \iff Ax + By = C
Valid for all real slopes m; vertical lines (undefined slope) follow the equation x = x1
Exact Formula
Input Parameters
Required
1
Slope (m): The constant rate of change (vertical rise over horizontal run)
2
Point Coordinates (x1, y1): A known ordered pair residing on the line
3
Target Format: Point-slope, slope-intercept (y = mx + b), or standard form (Ax + By = C)
Expected Outputs
Calculated
Point-Slope Form: y - y1 = m(x - x1)
Slope-Intercept Form: y = mx + b (with exact fractional intercept b = y1 - m*x1)
Standard Form: Ax + By = C (coprime integers with positive leading coefficient A)
Intercepts: y-intercept at (0, b) and x-intercept at (-b/m, 0)
Geometric Metrics: Parallel slope, perpendicular slope (-1/m), and angle of inclination
Worked Numerical Example
Instant Verification
Find the equation of a line with slope m = -3/4 passing through (-2, 5).
1 Point-slope formulation: y - 5 = (-3/4)(x - (-2)) => y - 5 = (-3/4)(x + 2)
2 Distribute slope across parentheses: y - 5 = (-3/4)x - 3/2
3 Isolate y for slope-intercept form: y = (-3/4)x + (-3/2 + 5) => y = (-3/4)x + 7/2
4 Clear fractions for standard form: 4y = -3x + 14 => 3x + 4y = 14
Result: Point-Slope: y - 5 = -3/4(x + 2); Slope-Intercept: y = -3/4x + 7/2; Standard Form: 3x + 4y = 14.

Foundations of Point-Slope Form: Definition & Derivation

In Euclidean plane geometry, a non-vertical straight line is uniquely and unambiguously determined by exactly two pieces of geometric information: a known location on the coordinate plane (a point (x₁, y₁)) and a constant direction of orientation (the slope m).

The mathematical derivation of point-slope form originates directly from the fundamental definition of slope. Consider an arbitrary moving point (x, y) located anywhere along the line. The slope between the fixed anchor point (x₁, y₁) and the arbitrary point (x, y) is:

m = Δy / Δx = (y − y₁) / (x − x₁)

Multiplying both sides of this quotient by the non-zero horizontal displacement (x − x₁) yields the canonical point-slope equation:

y − y₁ = m(x − x₁)
The Universal Point-Slope Formulation

Point-slope form is exceptionally valuable because it requires zero preliminary algebra. As soon as a slope and coordinate point are observed, the values are inserted directly into the formula. For equations of lines where only two coordinate points are provided, explore our interactive Linear Equation Calculator.

Converting Point-Slope to Slope-Intercept Form (y = mx + b)

While point-slope form is ideal for rapid formulation, slope-intercept form (y = mx + b) is the preferred representation for graphing, function analysis, and algorithmic evaluation.

The transformation from point-slope to slope-intercept requires two deterministic algebraic steps:

Step 1: Distribute the Slope

Multiply the slope scalar m across the binomial (x − x₁):

y − y₁ = mx − m x₁
Step 2: Isolate the Dependent Variable y

Add the constant y₁ to both sides of the equation to isolate y:

y = mx + (y₁ − m x₁)

Comparing this isolated form with y = mx + b reveals the exact analytical formula for the vertical y-intercept constant:

b = y₁ − m x₁

This relationship proves that the y-intercept is simply the initial coordinate y₁ adjusted by the cumulative vertical change accrued while traveling horizontally from x₁ back to the origin x = 0. For evaluating functions of this form, visit our Linear Function Evaluator.

Deriving Standard Form (Ax + By = C) with Integer Constraints

In linear algebra, linear programming, and matrix systems, lines are represented in standard form:

Ax + By = C

By mathematical convention, a rigorous standard form must satisfy three strict canonical constraints:

  • Integral Coefficients: A, B, C ∈ ℤ. All fractional multipliers must be cleared by multiplying the equation by the least common denominator.
  • Non-Negative Leading Coefficient: A ≥ 0. If A < 0 (or if A = 0 and B < 0), multiply the entire equation by −1.
  • Coprime Elements: gcd(|A|, |B|, |C|) = 1. Any common divisor shared across all three terms must be factored out and cancelled.

Standard form is particularly advantageous because it accommodates all lines without exception—including vertical lines (x = k, where B = 0), which cannot be expressed in slope-intercept form. Furthermore, the normal vector perpendicular to the line is directly readable as n = (A, B).

Intercepts, Rate of Change & Angle of Inclination

A straight line establishes critical geometric landmarks across the two-dimensional Cartesian plane:

Vertical y-Intercept
(0, b)

The point where the line crosses the vertical axis (x = 0). Computed as b = y₁ − m x₁.

Horizontal x-Intercept
(−b/m, 0)

The zero root of the linear function where y = 0. For non-horizontal lines, x₀ = −b / m.

Angle of Inclination
θ = arctan(m)

The counterclockwise angle between the positive x-axis and the line, measured in degrees or radians.

When the slope is positive (m > 0), θ is an acute angle between 0° and 90°. When the slope is negative (m < 0), the line slants downward, yielding an obtuse angle between 90° and 180°.

Parallel & Perpendicular Lines: Negative Reciprocal Slopes

The slope m governs the relationship between the primary line and other linear trajectories across the plane:

Parallel Lines (m∥ = m)

Two non-vertical lines are parallel if and only if they possess identical slopes: m₁ = m₂. Because their rates of change match everywhere, they maintain constant perpendicular distance and never intersect.

y − y₂ = m(x − x₂)
Perpendicular Lines (m⊥ = −1/m)

Two non-vertical lines are perpendicular (orthogonal) if and only if their slopes are negative reciprocals: m₁ · m₂ = −1. This guarantees an exact 90-degree right angle at their point of intersection.

m⊥ = −1 / m

For checking geometric orthogonality and vector angle preservation in higher dimensions, consult our Isometry Checker.

Five Step-by-Step Line Equation Walkthroughs

Observe how diverse combinations of slopes and coordinates are algebraically converted into all three standard representations:

Example 1: Positive Integer Slope and Positive Point m = 2, Point (3, 4)
1. Formulate point-slope: y − 4 = 2(x − 3).
2. Distribute slope 2: y − 4 = 2x − 6.
3. Add 4 to isolate y: y = 2x − 2 (Slope-Intercept Form).
4. Convert to standard form: Subtract 2x → −2x + y = −2 → Multiply by −1: 2x − y = 2.
5. Intercepts: y-intercept (0, -2); x-intercept set y=0 &implies; 2x=2 &implies; (1, 0).
Example 2: Negative Fractional Slope and Negative Coordinate m = -3/4, Point (-2, 5)
1. Formulate point-slope: y − 5 = (−3/4)(x − (−2)) &implies; y − 5 = (−3/4)(x + 2).
2. Distribute fraction: y − 5 = (−3/4)x − 6/4 = (−3/4)x − 3/2.
3. Add 5: y = (−3/4)x + 7/2 (or y = -0.75x + 3.5).
4. Standard form: Multiply by 4: 4y = −3x + 14 &implies; 3x + 4y = 14.
5. Perpendicular slope: m⊥ = −1 / (−3/4) = +4/3.
Example 3: Horizontal Line with Zero Slope m = 0, Point (4, -3)
1. Formulate point-slope: y − (−3) = 0(x − 4) &implies; y + 3 = 0.
2. Isolate y: y = −3.
3. Standard form: 0x + y = −3 (or simply y = -3).
4. Geometric properties: Parallel to x-axis; angle of inclination θ = 0°; no x-intercept.
Example 4: Line Passing Directly Through the Origin m = 1/2, Point (0, 0)
1. Formulate point-slope: y − 0 = (1/2)(x − 0).
2. Simplify: y = (1/2)x (Direct proportional variation).
3. Standard form: Multiply by 2 &implies; 2y = x &implies; x − 2y = 0.
4. Intercepts: Both x-intercept and y-intercept coincide at the origin (0, 0).
Example 5: Steep Negative Slope m = -5, Point (1, 2)
1. Formulate point-slope: y − 2 = −5(x − 1).
2. Distribute: y − 2 = −5x + 5 &implies; y = −5x + 7.
3. Standard form: 5x + y = 7.
4. Intercepts: y-intercept (0, 7); x-intercept (7/5, 0) = (1.4, 0).

Applications in Kinematics, Economics & Linear Regression

Formulating line equations from a known rate of change and reference point is foundational across practical engineering and scientific modeling:

Kinematics: Velocity & Initial Position

In uniform rectilinear motion, position s(t) evolves at constant velocity v: s − s₁ = v(t − t₁). The velocity serves as slope m, and any recorded position checkpoint (t₁, s₁) establishes the complete trajectory s(t) = vt + s₀.

Microeconomics: Marginal Cost & Break-Even

Total production cost functions C(q) are modeled with constant marginal cost MC as slope and fixed overhead as y-intercept. If producing 100 units costs $2,500 at a marginal cost of $15/unit, point-slope yields C − 2500 = 15(q − 100).

Calculus: Tangent Line Linearization

The tangent line approximation of any differentiable curve y = f(x) at point x₀ uses the first derivative as slope: y − f(x₀) = f′(x₀)(x − x₀). This forms the foundation of Taylor series approximations and Newton-Raphson root solving.

Machine Learning: Simple Linear Regression

In ordinary least squares (OLS) regression, the optimal regression line is mathematically constrained to pass directly through the centroid of the training data (¯x, ¯y) with slope β₁ = Cov(x, y) / Var(x).

Common Pitfalls, Sign Traps & Verification Checklist

Watch out for these frequent algebraic errors when calculating equations of lines:

Pitfall 1: Double Negative Sign Reversal

When substituting negative coordinates into y − y₁ = m(x − x₁), remember that subtracting a negative yields addition. For point (-3, -7), write y + 7 = m(x + 3), not y - 7 = m(x - 3).

Pitfall 2: Confusing Parallel and Perpendicular Slopes

Parallel lines share the exact same slope (m∥ = m). Perpendicular lines require both reciprocal inversion and sign negation (m⊥ = −1/m). Inverting without negating (writing 1/m) is an invalid reflection.

Pitfall 3: Inverting the Rise and Run

Slope is strictly vertical change divided by horizontal change: Δy / Δx. Inverting the ratio (Δx / Δy) inverts the entire line across the diagonal line of symmetry y = x.

Fact-Checked & Verified • Computational Accuracy Standards
Updated September 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

How do you find the equation of a line given a slope and one point?
To find the equation of a line with slope m passing through coordinate (x_1, y_1), substitute the values into the point-slope formula: y - y_1 = m(x - x_1). To express the equation in slope-intercept form (y = mx + b), distribute the slope m across (x - x_1) and add y_1 to both sides, solving directly for the y-intercept b = y_1 - m*x_1.
What is the point-slope form of a linear equation?
Point-slope form is written as y - y_1 = m(x - x_1), where m represents the slope (rate of change) and (x_1, y_1) represents a known coordinate on the Cartesian plane. It is derived directly from the definition of slope m = (y - y_1) / (x - x_1) by multiplying both sides by (x - x_1).
How do you convert point-slope form into standard form (Ax + By = C)?
To convert to standard form Ax + By = C, expand the point-slope equation y - y_1 = m(x - x_1) into slope-intercept form y = mx + b. If m is a fraction p/q, multiply the entire equation by the denominator q to eliminate all fractions. Move the x and y terms to the left side and constant to the right side, adjusting signs so that A is a positive integer (A >= 0) and A, B, C share no common factors.
What is the equation of a line with zero slope passing through a point?
A line with slope m = 0 is a horizontal line. Substituting m = 0 into the point-slope formula yields y - y_1 = 0(x - x_1), which simplifies to y = y_1. The y-value remains constant for all real values of x, and the line has no x-intercept unless y_1 = 0 (in which case it is the x-axis itself).
What happens if the slope of a line is undefined?
An undefined slope represents a perfectly vertical line perpendicular to the x-axis. Because vertical lines involve division by zero in the slope formula (delta x = 0), they cannot be written in slope-intercept or point-slope form. Instead, the equation is expressed as x = x_1, meaning the x-coordinate remains constant for all y-values.
How do you find the slope of a line perpendicular to a given line?
The slope of a perpendicular line is the negative reciprocal of the original slope: m_perp = -1 / m (provided m != 0). For example, if the original slope is m = 2/3, the perpendicular slope is -3/2. If the original line is horizontal (m = 0), the perpendicular line is vertical (undefined slope).
How do you calculate the angle of inclination of a line from its slope?
The angle of inclination theta is the angle the line makes with the positive horizontal x-axis, calculated using the arctangent function: theta = arctan(m). If the slope is positive, theta is between 0 degrees and 90 degrees. If the slope is negative, arctan(m) yields a negative value, to which 180 degrees is added to produce an inclination between 90 degrees and 180 degrees.
How do you calculate the x-intercept and y-intercept from a linear equation?
To find the y-intercept, evaluate the equation at x = 0, giving the point (0, b). To find the x-intercept, set y = 0 and solve for x: 0 = mx + b implies x = -b / m, yielding the coordinate (-b/m, 0), provided m != 0.
Can you use any point on the line in the point-slope formula?
Yes. Any coordinate pair (x, y) that lies on the line will produce the exact same simplified slope-intercept and standard form equations. Different points yield different intermediate point-slope equations, but after expanding and combining terms, the resulting canonical forms are identical.
Why is point-slope form preferred over slope-intercept form in calculus?
In calculus, derivatives provide the instantaneous slope m = f’(x_0) of a tangent line at a specific point of tangency (x_0, f(x_0)). Using point-slope form y - f(x_0) = f’(x_0)(x - x_0) allows immediate formulation of the tangent line equation without calculating the auxiliary y-intercept parameter first.