Slope Calculator
Find slope and inspect the line.
Entry
Four geometry modes
Accuracy
Exact rational slope
Check
Both points on the line
Slope inputs
Find the line and check both points.
Signed decimal, scientific e notation or integer fraction.
Entry and display options
Each mode keeps its own source inputs when you switch.
Signed decimal, scientific e notation or integer fraction.
Signed decimal, scientific e notation or integer fraction.
Signed decimal, scientific e notation or integer fraction.
Display precision never changes exact slope, classification or incidence checks.
Use compatible coordinate units for a physical angle, grade or distance. Sources retain sixty significant decimal digits or sixty digits per integer fraction, with scientific input exponents from negative one hundred through positive one hundred. Exact numerators and denominators are bounded to eighteen hundred digits. Rational decimal views use half-away-from-zero rounding; angles, distances and plot positions are numerical approximations.
Increasing line; positive slope
Decimal slope
Exact coordinate arithmetic determines the line and special cases. A vertical line has an undefined slope; coincident points do not determine a unique line. Rounded displays never replace those distinctions.
Line equations and directions
Normalized standard form
Slope-intercept form
Point-slope form
Parallel line slope
Perpendicular line direction
Distance and angle
Signed slope angle, then line inclination, in degrees:
The signed slope angle is measured relative to the positive horizontal direction, between negative and positive ninety degrees. Inclination is the equivalent undirected line angle from zero inclusive to one hundred eighty exclusive; a vertical line has ninety degrees. These are approximate numeric values, and endpoint-adjacent angles can round to an endpoint.
Line graph and rise/run
Solid line: the calculated line. Dashed legs: horizontal run, then vertical rise. Circle: first point. Square: second point.
The view follows the point pair; axes outside this window are omitted. Plot positions are numerical approximations, so extreme directions can appear horizontal or vertical at screen resolution. Mathematical answers use the exact values.
Slope calculation step by step
Record both points
Keep the same point order for both coordinate differences. In a constructed-point mode, the source record explains the chosen reference pair.
Calculate horizontal and vertical changes
Exact rational subtraction preserves small differences even when source coordinates have many digits.
Divide rise by nonzero run
Reduce the quotient exactly. Reversing both points reverses both differences and preserves this ratio.
Find the vertical-axis intercept
Subtract the product of slope and the first horizontal coordinate from the first vertical coordinate. This calculation applies only to finite slopes.
Check the line at both points
Substitution of each point into the normalized standard equation produces an exact zero residual, including for vertical and horizontal lines.
Keep geometric approximations separate
Segment distance assumes equal, compatible units on both axes. Angles use numerical inverse trigonometry; their displayed precision does not change the exact line equation.
Inputs saved with this calculation
- Calculation mode
- Two points
- Active numeric sources
- First horizontal coordinate: 1; First vertical coordinate: 2; Second horizontal coordinate: 5; Second vertical coordinate: 10
- Rounded decimal places
- 6
- Show graph
- true
All result details
Exact coordinates, differences, normalized coefficients, finite slopes and available intercepts are retained in this complete table. A missing intercept can represent no intersection or an entire coincident axis, as explained above. Each defined line has exact zero incidence checks at both displayed points. CSV retains every exact digit.
| Quantity | Exact value | Rounded decimal | Interpretation |
|---|---|---|---|
| First horizontal coordinate | Coordinates of the entered or explicitly constructed point pair. | ||
| First vertical coordinate | Coordinates of the entered or explicitly constructed point pair. | ||
| Second horizontal coordinate | Coordinates of the entered or explicitly constructed point pair. | ||
| Second vertical coordinate | Coordinates of the entered or explicitly constructed point pair. | ||
| Horizontal change | Second horizontal coordinate minus first horizontal coordinate. | ||
| Vertical change | Second vertical coordinate minus first vertical coordinate. | ||
| Squared segment distance | Exact square of the distance between the displayed point pair, using equal coordinate units. | ||
| Normalized horizontal coefficient | Primitive integer coefficient; the first nonzero variable coefficient is positive. | ||
| Normalized vertical coefficient | Primitive integer coefficient in the normalized line equation. | ||
| Normalized right-side constant | The same scaling is applied to all three line coefficients. | ||
| Exact slope | Vertical change divided by the nonzero horizontal change. | ||
| Signed percent grade | Slope multiplied by one hundred; meaningful as physical grade only with compatible axis units. | ||
| Vertical-axis intercept | The line value when the horizontal coordinate is zero. | ||
| Horizontal-axis intercept coordinate | The horizontal coordinate where the vertical coordinate is zero. | ||
| Perpendicular line slope | Negative reciprocal; the exact product of the two slopes is negative one. | ||
| First point verification difference | Normalized left-side line value minus its right-side constant at the first point. | ||
| Second point verification difference | Normalized left-side line value minus its right-side constant at the second point. |
Entry
Four geometry modes
Accuracy
Exact rational slope
Check
Both points on the line
Connect coordinate changes with the line they describe
Slope from the information you actually have
Start with two complete points, a displacement, one point and a finite slope, or standard line coefficients. The active input mode determines the calculation and documents any constructed reference points. Six worked point-pair examples illustrate increasing, decreasing, fractional, horizontal, vertical and coincident cases. Source strings stay independent across modes, making it possible to compare approaches without silently replacing the original problem.
Equivalent line equations and exact checks
Keep the reduced slope, slope-intercept equation, point-slope equation and primitive integer standard equation together. Available intercepts and parallel or perpendicular directions add useful context. Every defined line is checked by substituting both displayed points into its standard equation. The table retains the exact residuals, while decimal formatting remains a presentation choice rather than an input to the algebra.
A graph that supports the numerical result
Inspect the solid line, two distinct point markers and dashed horizontal and vertical legs in an equal-unit square viewport. Exact centered differences are calculated before positions are converted for plotting, which avoids losing a small separation between large coordinates. The caption identifies the midpoint, grid-step units and any omitted axes. The exact output remains the authority when a directional component is smaller than visible screen resolution.
Slope formulas and step-by-step examples
Subtract coordinates in a consistent order
For and , the horizontal change is and the vertical change is . The quotient is exact before choosing a decimal view. Reversing the points negates both differences, giving the same line direction.
Build the line and check both points
With finite slope , compute the intercept . The resulting equation is , or equivalently . Substitution of either entered point produces the same exact right-side constant. A standard equation also provides an incidence check when a slope-intercept form is unavailable.
Keep fractional coordinates exact
Consider and . The run is and the rise is , so the exact slope is . Prematurely rounding either coordinate changes the input problem. The calculator instead reduces the rational differences and forms the line from their exact quotient.
Check the division condition and degenerate inputs
The quotient requires . If only the run is zero, a distinct point pair determines a vertical line. If both changes vanish, no unique line follows. For coefficient entry, defines a line only when at least one variable coefficient is nonzero. The cases and describe the whole plane and the empty set respectively.
Interpret grade, angle and distance with compatible units
For a finite slope, percent grade is and the signed slope angle is . Thus the default example has grade and signed angle approximately . Its exact point separation is . These angle and distance interpretations assume compatible coordinate units. A steep line need not represent a sensible road or physical structure; the calculator does not impose that external meaning.
Keep undefined cases, assumptions and precision visible
Exact decisions before decimal formatting
- Finite decimals and integer fractions are retained as rational values throughout coordinate subtraction and line construction.
- A tiny nonzero run remains different from an exact zero, even when its displayed decimal would round to zero.
- Vertical lines, coincident points, the whole plane and an inconsistent coefficient equation receive distinct outcomes.
- Both point-incidence checks must be exactly zero; similar rounded coordinates are not used as proof.
A complete record for checking the interpretation
- Mode notes identify an origin-anchored direction or constructed reference segment before it is treated as a measured line.
- Intercept explanations distinguish a missing crossing from an entire axis coinciding with the line.
- Exact percent grade stays separate from approximate angles, numerical distance and plot coordinates.
- Saved sources, full CSV and typeset printing preserve the conditions needed to reproduce the result.
Coordinate geometry for learning, teaching and model checks
Students learning rate of change
Follow the two coordinate differences before dividing, and compare the resulting slope with the direction on the graph. Swapping points illustrates why reversing both differences leaves the ratio unchanged. Contrast horizontal, vertical and coincident examples to understand why zero and undefined are different. Use the line-incidence checks to connect a calculated equation back to the points that motivated it.
Teachers comparing line representations
Move between two-point, point-and-slope and coefficient descriptions while explaining the reference data each method supplies. Fractional coordinates demonstrate exact arithmetic, and degenerate coefficient equations show why checking conditions must come before division. A printable source record supports classroom discussion. The graph is a mathematical illustration with equal coordinate units, and its caption makes the local viewport explicit instead of moving axes to convenient positions.
People checking a linear relationship
Use coordinates from a defined model to inspect its rate of change, intercepts and direction. Confirm the meaning and units of each coordinate before interpreting a numerical slope as a physical grade or angle. The calculator checks the entered mathematics; it does not decide whether measured data follow a straight line. Preserve the source record when using a constructed reference pair, rounded measurements or a line equation obtained elsewhere.
How it works in three quick steps.
Choose the source information and enter exact values
Select two points, rise and run, a known point with a finite slope, or coefficients of a standard line equation. Enter signed decimals, scientific notation or integer fractions in each active field. Keep compatible coordinate units when interpreting physical angles or distances. Each mode retains its own inputs, so switching methods does not silently translate a direction into an assumed measured line.
Review slope, special cases and the line preview
Read the exact slope and its separate rounded decimal view. Inspect the line equations, available intercepts, perpendicular direction and exact point-incidence checks. Vertical lines and coincident points have different meanings; a coefficient equation can also represent the whole plane or no points. The optional graph uses equal horizontal and vertical coordinate units and follows the selected or constructed point pair.
Inspect the working and keep the source record
Follow the coordinate subtraction, division condition, intercept calculation and substitution into the standard line equation. Compare the exact table with the angle and distance approximations before using them. Copy the summary, share editable active sources, download the complete CSV or print the typeset method. The browser print dialog can save a PDF containing the source values, geometry and verification record.
Save the source values alongside their geometry
Download the full exact record
CSV contains the active input sources, classification, line forms, method notes, every exact table fraction and separately identified geometric approximations. Long numerator and denominator values remain complete. This makes the file suitable for inspecting a borderline vertical case or a large-coordinate difference that would be obscured by a short decimal summary. Display precision does not shorten the exact exported values.
Print typeset working or save a PDF
Print removes navigation and editing controls while retaining source settings, solution classification, line equations, the optional graph, worked steps and the native result table. Select a suitable orientation and Save as PDF in the browser. Very long expressions use an explicit compact notice rather than being silently clipped; keep the CSV with the PDF when complete exact digits exceed a readable printed line.
Share an editable example
A shared link retains the active source group, decimal precision and graph visibility in its fragment. Someone opening it can inspect the same original strings and change the problem. Internal section navigation leaves the shared configuration intact. A link containing malformed numeric sources, duplicate settings or hidden inactive input groups is rejected, so incomplete imported state cannot silently overwrite the current calculation.
Frequently Asked Questions
How do I calculate slope from two points?
What is the difference between zero, undefined and no unique slope?
Can I use fractions, negative coordinates and scientific notation?
What does rise-and-run mode assume about the line?
How does the calculator handle a standard line equation?
How are intercepts and perpendicular slopes interpreted?
Are percent grade, angle and distance exact measurements?
Why can the graph omit an axis or look almost horizontal or vertical?
Does swapping points or changing decimal places change the answer?
Can I share, download or print the complete calculation?
About this exact slope and line calculator
This slope calculator connects several common descriptions of a straight line while preserving the source information behind each result. Two-point entry begins with actual coordinates. Rise-and-run entry begins with a direction and deliberately anchors its illustrative line at the origin. Point-and-slope entry constructs a second reference point using a horizontal change of one. Standard coefficient entry derives a convenient reference pair from the equation. Those differences matter when interpreting a displayed intercept, distance or graph as part of a real problem.
Supported numeric sources are converted into exact rational values before subtraction, division or line normalization. The reduced slope, intercepts, percent grade, standard coefficients and incidence residuals therefore do not depend on floating-point coordinate rounding. The tool checks both displayed points against the derived line equation. A separate decimal layer provides readable approximations without altering the classification. Angles use numerical inverse trigonometry; segment distances retain an exact radical expression alongside their numerical view. The graph converts centered exact ratios into screen positions and discloses its finite visual resolution.
The page also explains the limits of the model. A vertical line does not have a finite slope, a repeated point does not establish a unique line, and zero variable coefficients may fail to define any line at all. Compatible axis units are required for physical distances and geometric angle interpretations. The tool does not fit a trend through noisy observations or validate external measurements. Source-preserving sharing, complete CSV and print output help keep these assumptions attached to a result when it is reused, taught or checked independently.
Who maintains this page
Ownership and review
Written and maintained by the Toolarithm editorial team. No review date is shown without a maintained editorial record. No independent professional review is claimed.
Methodology
Equations are checked by substituting worked examples into the stated relationship and comparing the result with the interactive implementation.
Read the editorial methodologyDates and sources
Review dates change only after a substantive method or content check.
Keep building