# Slope Calculator > Calculate line slope from two points, or project a second point from a starting point, distance, and slope or angle. Page: https://askcalculators.com/calculator/slope-calculator/ Definition: https://askcalculators.com/calculator/slope-calculator/definition.json JSON Schema: https://askcalculators.com/calculator/slope-calculator/schema.json Version: 2.0.0 Maintained by: AskCalculators (software project; not a credentialed reviewer) Qualified review: pending. Automated checks do not establish professional approval. Page status: Live Review status: Pending ## Use Open the calculator page and enter values. Query-string parameters can restore and bookmark a calculation. Example: https://askcalculators.com/calculator/slope-calculator/?mode=two-points&x1=0&y1=0&x2=4&y2=8 ## Inputs - mode: Known values; type=select; required; default=two-points; values=two-points|point-slope|point-angle - x1: x₁; type=number; required; default=0 - y1: y₁; type=number; required; default=0 - x2: x₂; type=number; required; default=4; showWhen=mode:two-points - y2: y₂; type=number; required; default=8; showWhen=mode:two-points - distance: Distance; type=number; required; default=5; min=0.000001; showWhen=mode:point-slope - slopeInput: Slope (m); type=number; required; default=2; showWhen=mode:point-slope - angleDistance: Distance; type=number; required; default=5; min=0.000001; showWhen=mode:point-angle - angleInput: Angle of incline; type=number; required; default=45; showWhen=mode:point-angle ## Outputs - slope: Slope (m); format=number; primary - angle: Angle of incline; format=number - distanceResult: Distance; format=number - rise: Rise (Δy); format=number - run: Run (Δx); format=number - secondPoint: Second point; format=text - equation: Line equation; format=text ## Formula m=(y₂−y₁)/(x₂−x₁)=tan(θ); with distance d, Δx=d/√(1+m²) and Δy=mΔx. ## Rules - Empty optional inputs are undefined, not zero. - Hidden conditional inputs are ignored. - Do not invent missing required inputs.