Equação da Reta (2 pontos)
- Created by
- Renato Passos, Eng. de Software
- Reviewed by
- Renato Passos, Eng. de Software
Last updated: Apr 18, 2026
Formula
y = mx + b
About this calculator
This calculator determines the equation of the line passing through two given points on the Cartesian plane. From the coordinates of points (x₁, y₁) and (x₂, y₂), it calculates the slope m and the y-intercept b, presenting the slope-intercept form y = mx + b. The tool also displays the graph of the line and information such as slope and intercepts.
The operation is simple: enter the coordinates of the two points. The calculator computes the difference in y-coordinates (Δy) and x-coordinates (Δx) and obtains m = Δy/Δx. Then it substitutes one point into y = mx + b to find b. The result is shown clearly, with the line equation and the values of m and b.
Use this calculator to solve analytic geometry problems, such as finding the equation of a line from two known points, checking if three points are collinear, or determining the slope of a line. It is useful for students and professionals working with graphs, linear functions, and mathematical modeling.
Caution: ensure the two points are distinct, as identical points do not define a line. The calculator does not handle vertical lines (where x₁ = x₂), because the slope is infinite. In that case, the equation is x = constant. Also check that the input values are in the correct numeric format (use dot as decimal separator).
Frequently asked questions
What if the two points have the same x-coordinate?
In that case, the line is vertical and the equation is x = constant x-coordinate. The calculator does not support this case, but you can use the equation directly.
Does the calculator handle decimal points?
Yes, it accepts decimal numbers using dot as separator. For example, use 1.5 instead of 1,5.
How do I interpret the slope m?
The slope m indicates the steepness: m > 0 means increasing line, m < 0 decreasing, m = 0 horizontal. The larger the absolute value, the steeper the line.
Can I use this calculator to find the equation from a point and slope?
No, this calculator requires two points. If you have a point and slope, use the point-slope form calculator.
What does the y-intercept b mean?
b is the y-value when x = 0, i.e., the point where the line crosses the y-axis.