{"id":66824,"date":"2026-10-15T09:20:32","date_gmt":"2026-10-15T06:20:32","guid":{"rendered":"https:\/\/wpcalc.com\/en\/?p=66824"},"modified":"2026-10-15T09:20:32","modified_gmt":"2026-10-15T06:20:32","slug":"slope-calculator","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/mathematics\/slope-calculator\/","title":{"rendered":"Slope Calculator"},"content":{"rendered":"<section class=\"not-prose calculator-box\" aria-labelledby=\"calculator-title\"><div class=\"flex items-baseline sm:items-center justify-between gap-2 sm:gap-3\"><div class=\"flex flex-col sm:flex-row sm:items-center gap-2\"><span class=\"icon icon-calculator text-primary-700! text-base! dark:text-primary-300!\" aria-hidden=\"true\"><\/span><h2 id=\"calculator-title\" class=\"text-lg font-display font-bold\">Find the Slope Between Two Points<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"66824\" data-favorite-title=\"Slope\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/mathematics\/slope-calculator\/\" data-favorite-excerpt=\"Find the slope of the line through two points. Enter the x and y coordinates of both points to get the slope, line type, angle of inclination and the full line equation.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-algebra\">\n    <span class=\"icon icon-shape-star-empty\" aria-hidden=\"true\"><\/span>\n  <\/button>\n  <div class=\"calcdash-favorite__tip\" aria-hidden=\"true\">\n   <span class=\"favorite-tooltip\" id=\"favorite-tooltip\"><\/span>\n  <\/div>\n  <span class=\"sr-only\" role=\"status\" id=\"favorite-status\"><\/span>\n<\/div><\/div><form action=\"https:\/\/wpcalc.com\/en\/mathematics\/slope-calculator\/\" method=\"POST\" class=\"calculator\" id=\"calculator-66824\" data-post=\"66824\"><fieldset class=\"fieldset-input is-1\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"is-single field\" id=\"input-1\"><span class=\"font-semibold\">Point 1<\/span><\/div><div class=\"field has-term\" id=\"input-2\"><label for=\"field-2\">x\u2081 coordinate<\/label><div class=\"term\">x\u2081<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"x_coordinate\" id=\"field-2\" placeholder=\"e.g. 2\" step=\"any\" value=\"2\"\/><\/div><div class=\"field has-term\" id=\"input-3\"><label for=\"field-3\">y\u2081 coordinate<\/label><div class=\"term\">y\u2081<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"y_coordinate\" id=\"field-3\" placeholder=\"e.g. 3\" step=\"any\" value=\"3\"\/><\/div><div class=\"is-single field\" id=\"input-4\"><span class=\"font-semibold\">Point 2<\/span><\/div><div class=\"field has-term\" id=\"input-5\"><label for=\"field-5\">x\u2082 coordinate<\/label><div class=\"term\">x\u2082<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"x_coordinate\" id=\"field-5\" placeholder=\"e.g. 6\" step=\"any\" value=\"6\"\/><\/div><div class=\"field has-term\" id=\"input-6\"><label for=\"field-6\">y\u2082 coordinate<\/label><div class=\"term\">y\u2082<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"y_coordinate\" id=\"field-6\" placeholder=\"e.g. 11\" step=\"any\" value=\"11\"\/><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"66824\">Calculate<\/button><button type=\"reset\">Reset<\/button><\/div><div class=\"field is-checkbox hidden!\" id=\"field-auto-calc\"><input type=\"checkbox\" id=\"auto-calc\"><label for=\"auto-calc\">Calculate automatically<\/label><small>If enabled, the result will update automatically when you change any value.<\/small><\/div><div class=\"fieldset-result is-hidden\" aria-labelledby=\"result-title\" aria-live=\"polite\" role=\"region\"> <h3 class=\"result-title bg-gradient-to-r from-primary-50 to-gray-50 dark:from-primary-900 dark:to-gray-800\" id=\"result-title\"><span class=\"icon icon-s-pulse\" aria-hidden=\"true\"><\/span> Slope Results<\/h3><div class=\"result-box\"><div class=\"field-result\" id=\"output-1\"><span class=\"field-title\"><span>Slope (m)<\/span><span class=\"result-term\">m<\/span><\/span><span class=\"field-value\" id=\"result-1\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-2\"><span class=\"field-title\"><span>Line type<\/span><\/span><span class=\"field-value\" id=\"result-2\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result\" id=\"output-3\"><span class=\"field-title\"><span>Angle of inclination<\/span><span class=\"result-term\">\u03b8<\/span><\/span><span class=\"field-value\" id=\"result-3\" data-unit=\"\u00b0\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-4\"><span class=\"field-title\"><span>Line equation<\/span><\/span><span class=\"field-value\" id=\"result-4\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><div class=\"field-result is-column\" id=\"output-5\"><span class=\"field-title\"><span>How it was calculated<\/span><\/span><span class=\"field-value\" id=\"result-5\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><\/div><div class=\"result-actions\"><button type=\"button\" class=\"copy-link\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z\"\/><path d=\"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z\"\/><\/svg><span class=\"copy-link__text\">Copy link to this calculation<\/span><\/button><span class=\"sr-only\" role=\"status\" id=\"copy-link-status\"><\/span><\/div><\/div><a href=\"#respond\" class=\"hidden transition-opacity duration-300 opacity-0 w-50 text-sm justify-center items-center gap-2 px-4 py-2 rounded bg-gray-200 text-gray-700 hover:bg-gray-300\" id=\"leave-comment\"><span class=\"icon icon-comments\" aria-hidden=\"true\"><\/span>Leave a Comment<\/a><\/form><\/section><section id=\"calc-reactions\" class=\"not-prose hidden my-12 bg-gradient-to-r from-primary-50 to-gray-50 border border-indigo-100 rounded-xl px-6 py-4 shadow-sm\" data-post=\"66824\" aria-live=\"polite\" aria-labelledby=\"calc-reactions-title\"><p id=\"calc-reactions-title\" class=\"text-sm text-gray-500 text-center mb-2\">How did this result make you feel?<\/p><div role=\"group\" aria-labelledby=\"calc-reactions-title\" class=\"grid grid-cols-3 sm:flex sm:flex-row sm:justify-around gap-4 sm:items-center sm:flex-wrap\"><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"like\"><span class=\"reaction-count\" data-reaction-count=\"like\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude00 <\/span><span class=\"reaction-description font-medium\">Like <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"helpful\"><span class=\"reaction-count\" data-reaction-count=\"helpful\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\udca1 <\/span><span class=\"reaction-description font-medium\">Helpful <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"confused\"><span class=\"reaction-count\" data-reaction-count=\"confused\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude15 <\/span><span class=\"reaction-description font-medium\">Confused <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"disappointed\"><span class=\"reaction-count\" data-reaction-count=\"disappointed\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude1e <\/span><span class=\"reaction-description font-medium\">Disappointed <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"inaccurate\"><span class=\"reaction-count\" data-reaction-count=\"inaccurate\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\u274c <\/span><span class=\"reaction-description font-medium\">Inaccurate <\/span><\/button><\/div><div id=\"reaction-message\" class=\"hidden mt-8 rounded-md border border-primary-100 bg-white\/50 backdrop-blur-sm px-4 py-2 text-sm text-center shadow-sm\"><\/div><\/section><div class=\"calcdash-ad not-prose calcdash-ad--calc_result calcdash-ad--in-article\"><ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-1721569815777345\" data-ad-slot=\"6317458308\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<style id=\"wpcoderpro-inline-1\">.formula-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section class=\"formula-box\" aria-labelledby=\"formula-title\">\r\n\t<div id=\"formula-title\" class=\"not-prose font-display mb-4\"><span class=\"icon icon-formula\" aria-hidden=\"true\"><\/span><h2>Slope Formula<\/h2><\/div>\r\n\t<figure class=\"not-prose formula\">\r\n\t\t<figcaption class=\"formula-title\">Formula<\/figcaption>\r\n\t\t<div class=\"text-base text-gray-800\" id=\"formula\">\n\\[ m = \\frac{y_2 - y_1}{x_2 - x_1} \\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(m\\) \u2014 slope of the line<\/li>\n<li>\\((x_1, y_1)\\) \u2014 coordinates of the first point<\/li>\n<li>\\((x_2, y_2)\\) \u2014 coordinates of the second point<\/li>\n<\/ul>\n<p>The slope is the ratio of the <em>rise<\/em> (change in \\(y\\)) to the <em>run<\/em> (change in \\(x\\)), so it measures how steeply a line climbs or falls. A related value is the angle of inclination \\(\\theta\\), found with the arctangent: \\(\\theta = \\arctan(m)\\).<\/p>\n<p>\r\n<\/section>\n<style id=\"wpcoderpro-inline-459\">.calculation-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section id=\"calculation\" class=\"calculation-box\" aria-labelledby=\"calculation-title\">\r\n\t<div id=\"calculation-title\" class=\"not-prose font-display\"><span class=\"icon icon-unordered-list\" aria-hidden=\"true\"><\/span><h2>Slope \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> find the slope of the line through the points \\((2, 3)\\) and \\((6, 11)\\).<\/p>\n<p>\\[ m = \\frac{y_2 - y_1}{x_2 - x_1} = \\frac{11 - 3}{6 - 2} = \\frac{8}{4} = 2 \\]<\/p>\n<p>\\[ \\theta = \\arctan(2) \\approx 63.4349\u00b0 \\]<\/p>\n<p>\\[ b = y_1 - m \\cdot x_1 = 3 - 2 \\times 2 = -1 \\quad \\Rightarrow \\quad y = 2x - 1 \\]<\/p>\n<p><strong>Result:<\/strong> the slope is \\(m = 2\\) \u2014 the line is increasing (it rises 2 units for every 1 unit it moves to the right), its inclination is about \\(63.4349\u00b0\\), and its equation is \\(y = 2x - 1\\).<\/p>\n<p>\n\r\n<\/section>\n<h2>How to Use the Slope Calculator<\/h2>\n<ol>\n<li>Enter the <strong>x\u2081 coordinate<\/strong> and <strong>y\u2081 coordinate<\/strong> of the first point.<\/li>\n<li>Enter the <strong>x\u2082 coordinate<\/strong> and <strong>y\u2082 coordinate<\/strong> of the second point.<\/li>\n<li>Read the results: the <strong>Slope (m)<\/strong>, the <strong>Line type<\/strong> (horizontal, vertical, increasing or decreasing), the <strong>Angle of inclination<\/strong> in degrees, and the <strong>Line equation<\/strong> in slope-intercept form.<\/li>\n<li>Check the <strong>How it was calculated<\/strong> section to see every intermediate step, which is handy for homework verification.<\/li>\n<\/ol>\n<h2>What Is Slope and How to Interpret It<\/h2>\n<p>The slope of a line describes its steepness and direction. Geometrically, it answers the question: \u201cif I move 1 unit to the right along the line, how far up (or down) do I go?\u201d The answer is the slope. A slope of \\(2\\) means the line rises 2 units for every 1 unit of horizontal movement; a slope of \\(-0.5\\) means it falls half a unit for every unit to the right.<\/p>\n<p>The sign of the slope tells you the direction of the line:<\/p>\n<ul>\n<li><strong>\\(m &gt; 0\\)<\/strong> \u2014 the line is increasing: it rises from left to right.<\/li>\n<li><strong>\\(m &lt; 0\\)<\/strong> \u2014 the line is decreasing: it falls from left to right.<\/li>\n<li><strong>\\(m = 0\\)<\/strong> \u2014 the line is horizontal: \\(y\\) never changes.<\/li>\n<li><strong>\\(m\\) undefined<\/strong> \u2014 the line is vertical: \\(x\\) never changes, and the formula divides by zero.<\/li>\n<\/ul>\n<p>The magnitude \\(|m|\\) measures steepness: the larger the absolute value, the steeper the line. The same idea also gives the <strong>angle of inclination<\/strong> \\(\\theta\\) \u2014 the angle the line makes with the positive x-axis. A slope of 1 corresponds to \\(45\u00b0\\); slopes above 1 are steeper than \\(45\u00b0\\); slopes between 0 and 1 are gentler. Vertical lines have an inclination of \\(90\u00b0\\).<\/p>\n<p>Besides the slope itself, the calculator builds the full <strong>slope-intercept equation<\/strong> \\(y = mx + b\\) by finding the y-intercept \\(b = y_1 - m \\cdot x_1\\). This equation is satisfied by both input points, so you can use it to find \\(y\\) for any other \\(x\\) on the same line \u2014 for example when graphing or solving word problems about rates of change, such as speed, cost per unit, or growth per hour.<\/p>\n<h2>Assumptions, Limitations and Tips<\/h2>\n<ul>\n<li><strong>Order of points does not matter.<\/strong> Swapping point 1 and point 2 changes the signs of both rise and run, so the slope stays the same.<\/li>\n<li><strong>Vertical lines have no slope.<\/strong> If \\(x_1 = x_2\\), the run is zero and the slope is undefined; the calculator reports this case explicitly along with the equation \\(x = x_1\\) and an inclination of \\(90\u00b0\\).<\/li>\n<li><strong>Identical points are rejected.<\/strong> If both points are the same, infinitely many lines pass through them, so no unique slope exists.<\/li>\n<li><strong>Decimals and negatives are fine.<\/strong> Use negative values for coordinates left of or below the origin; the calculator handles any real numbers.<\/li>\n<li><strong>Slope vs. percentage grade.<\/strong> In road construction and roofing, \u201cgrade\u201d is the slope expressed as a percentage: a slope of \\(0.08\\) is an 8% grade. Multiply the slope by 100 to convert.<\/li>\n<li><strong>This calculator works for straight lines only.<\/strong> Curves such as parabolas have a slope that changes from point to point, which is a topic in calculus.<\/li>\n<\/ul>\n<p>If you go on to work with linear systems, the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/elimination-method\/\">Elimination Method calculator<\/a> helps solve two line equations simultaneously, and parallel or proportional relationships between two variables can be checked with the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/direct-variation\/\">Direct Variation calculator<\/a>. For basic arithmetic practice behind the formula, see the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/division-calculator\/\">Division<\/a> and <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/subtraction-calculator\/\">Subtraction<\/a> calculators.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find the slope of the line through two points. Enter the x and y coordinates of both points to get the slope, line type, angle of inclination and the full line equation.<\/p>\n","protected":false},"author":3168,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[11],"class_list":["post-66824","post","type-post","status-publish","format-standard","hentry","category-mathematics","tag-algebra"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/66824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/users\/3168"}],"replies":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/comments?post=66824"}],"version-history":[{"count":1,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/66824\/revisions"}],"predecessor-version":[{"id":67061,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/66824\/revisions\/67061"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=66824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=66824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=66824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}