m = (y₂ - y₁) / (x₂ - x₁)
m = slope of the line
(x₁, y₁) = first point
(x₂, y₂) = second point
Positive Slope (m > 0)
Line rises from left to right
Negative Slope (m < 0)
Line falls from left to right
Zero Slope (m = 0)
Horizontal line
Undefined Slope
Vertical line
Slope is a fundamental concept in algebra and geometry that measures the steepness and direction of a line. It represents the rate of change between two points on a line, describing how much the y-value changes for each unit change in the x-value. The slope is often denoted by the letter "m" and is calculated as the ratio of the vertical change (rise) to the horizontal change (run) between two points.
Understanding slope is essential for many applications including physics (velocity and acceleration), economics (rate of change in prices or demand), engineering (grade of roads and ramps), and data analysis (trend lines and linear regression). A positive slope indicates an upward trend, a negative slope indicates a downward trend, a zero slope represents a horizontal line, and an undefined slope represents a vertical line.
The angle of a line with respect to the x-axis can be calculated using the arctangent (inverse tangent) of the slope. This angle, often denoted as θ (theta), is measured in degrees or radians. A horizontal line has an angle of 0°, while a vertical line has an angle of 90°.
The formula θ = arctan(m) gives the angle in radians, which can be converted to degrees by multiplying by 180/π. For positive slopes, the angle is positive (line tilts upward), and for negative slopes, the angle is negative (line tilts downward). Understanding this relationship is crucial in fields like surveying, architecture, and physics where angles of inclination are important.
Slope calculations follow standard mathematical formulas. Vertical lines have undefined slope. This calculator is for educational purposes. For professional applications, please verify results with appropriate mathematical software or consult a qualified professional.