Free Slope-Intercept Calculator | Two-Point Equation Solver

Final Equation
📖 How to use the Slope-Intercept Tool

To find the equation of a line, begin by entering the coordinates for two distinct points: (x₁, y₁) and (x₂, y₂). These inputs accept positive numbers, negative numbers, and decimals. This tool is ideal for geometry and algebra homework where you need to verify the relationship between two spatial locations.

The Show Steps toggle is enabled by default to provide a full whiteboard breakdown. The tool first calculates the “rise over run” to find the slope (m), showing the subtraction of the Y-values over the X-values. It then uses the Point-Slope method to isolate and solve for the Y-intercept (b).

One of the most powerful features of this tool is its ability to handle “edge cases.” If you enter two points with the same X-value, the tool detects a vertical line and provides an “x = constant” solution. If the Y-values are the same, it identifies a horizontal line with a slope of zero.

Using this tool is completely free and unlimited, requiring no sign-up or personal information. Every calculation is performed instantly in your browser. After clicking “Find Equation,” the tool will automatically scroll your view to center the final result and the step-by-step breakdown on your screen.

💡 5 Practice Examples
P1: (1, 2) | P2: (3, 6) Standard positive slope. m = 2, b = 0. Basic
P1: (-2, 5) | P2: (4, -7) Involves negative coordinates and a negative slope. Negatives
P1: (0, 3) | P2: (5, 3) Horizontal line example where slope is 0. Horizontal
P1: (4, 1) | P2: (4, 10) Vertical line case where x-values are identical. Vertical
P1: (1.5, 2.5) | P2: (4.5, 5.5) Demonstrates decimal coordinate handling. Decimals