{"id":66825,"date":"2026-10-15T09:20:31","date_gmt":"2026-10-15T06:20:31","guid":{"rendered":"https:\/\/wpcalc.com\/en\/?p=66825"},"modified":"2026-10-26T09:52:34","modified_gmt":"2026-10-26T06:52:34","slug":"distance-between-two-points-calculator","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/mathematics\/distance-between-two-points-calculator\/","title":{"rendered":"Distance Formula Calculator \u2013 Distance Between Two Points"},"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 Distance Between Two Points<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"66825\" data-favorite-title=\"Distance Between Two Points\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/mathematics\/distance-between-two-points-calculator\/\" data-favorite-excerpt=\"Enter the coordinates of two points to get the straight-line distance between them, along with \u0394x, \u0394y and the midpoint of the segment. Supports meters, centimeters, feet and inches.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-geometry\">\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\/distance-between-two-points-calculator\/\" method=\"POST\" class=\"calculator\" id=\"calculator-66825\" data-post=\"66825\"><fieldset class=\"fieldset-input is-2\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"field is-single\" id=\"input-1\"><label for=\"field-1\">Dimension<\/label><div class=\"grid grid-cols-1\"><select id=\"field-1\" name=\"dimension\"><option value=\"2\" selected>2D: points (x, y)<\/option><option value=\"3\">3D: points (x, y, z)<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><div class=\"is-single field\" id=\"input-2\"><span class=\"font-semibold\">Point 1<\/span><\/div><div class=\"field has-term\" id=\"input-3\"><label for=\"field-3\">x\u2081<\/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><div class=\"field-group\"><input type=\"number\" name=\"x\" id=\"field-3\" aria-describedby=\"calc-info-3\" step=\"any\" value=\"1\"\/><div class=\"grid grid-cols-1\"><select id=\"field-4\" name=\"unit\" aria-label=\"Unit\"><option value=\"m\" selected>m<\/option><option value=\"cm\">cm<\/option><option value=\"ft\">ft<\/option><option value=\"in\">in<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><small id=\"calc-info-3\">Horizontal coordinate of the first point.<\/small><\/div><div class=\"field has-term\" id=\"input-4\"><label for=\"field-5\">y\u2081<\/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><div class=\"field-group\"><input type=\"number\" name=\"y\" id=\"field-5\" aria-describedby=\"calc-info-5\" step=\"any\" value=\"2\"\/><div class=\"grid grid-cols-1\"><select id=\"field-6\" name=\"unit\" aria-label=\"Unit\"><option value=\"m\" selected>m<\/option><option value=\"cm\">cm<\/option><option value=\"ft\">ft<\/option><option value=\"in\">in<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><small id=\"calc-info-5\">Vertical coordinate of the first point.<\/small><\/div><div class=\"field has-term\" id=\"input-5\" hidden><label for=\"field-7\">z\u2081<\/label><div class=\"term\">z\u2081<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><div class=\"field-group\"><input type=\"number\" name=\"z\" id=\"field-7\" aria-describedby=\"calc-info-7\" step=\"any\" value=\"0\"\/><div class=\"grid grid-cols-1\"><select id=\"field-8\" name=\"unit\" aria-label=\"Unit\"><option value=\"m\" selected>m<\/option><option value=\"cm\">cm<\/option><option value=\"ft\">ft<\/option><option value=\"in\">in<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><small id=\"calc-info-7\">Depth coordinate of the first point (3D).<\/small><\/div><div class=\"is-single field\" id=\"input-6\"><span class=\"font-semibold\">Point 2<\/span><\/div><div class=\"field has-term\" id=\"input-7\"><label for=\"field-10\">x\u2082<\/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><div class=\"field-group\"><input type=\"number\" name=\"x\" id=\"field-10\" aria-describedby=\"calc-info-10\" step=\"any\" value=\"4\"\/><div class=\"grid grid-cols-1\"><select id=\"field-11\" name=\"unit\" aria-label=\"Unit\"><option value=\"m\" selected>m<\/option><option value=\"cm\">cm<\/option><option value=\"ft\">ft<\/option><option value=\"in\">in<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><small id=\"calc-info-10\">Horizontal coordinate of the second point.<\/small><\/div><div class=\"field has-term\" id=\"input-8\"><label for=\"field-12\">y\u2082<\/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><div class=\"field-group\"><input type=\"number\" name=\"y\" id=\"field-12\" aria-describedby=\"calc-info-12\" step=\"any\" value=\"6\"\/><div class=\"grid grid-cols-1\"><select id=\"field-13\" name=\"unit\" aria-label=\"Unit\"><option value=\"m\" selected>m<\/option><option value=\"cm\">cm<\/option><option value=\"ft\">ft<\/option><option value=\"in\">in<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><small id=\"calc-info-12\">Vertical coordinate of the second point.<\/small><\/div><div class=\"field has-term\" id=\"input-9\" hidden><label for=\"field-14\">z\u2082<\/label><div class=\"term\">z\u2082<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><div class=\"field-group\"><input type=\"number\" name=\"z\" id=\"field-14\" aria-describedby=\"calc-info-14\" step=\"any\" value=\"0\"\/><div class=\"grid grid-cols-1\"><select id=\"field-15\" name=\"unit\" aria-label=\"Unit\"><option value=\"m\" selected>m<\/option><option value=\"cm\">cm<\/option><option value=\"ft\">ft<\/option><option value=\"in\">in<\/option><\/select><svg class=\"pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end text-gray-500 sm:size-4\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n              <path fill-rule=\"evenodd\" d=\"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z\" clip-rule=\"evenodd\" \/>\n            <\/svg><\/div><\/div><small id=\"calc-info-14\">Depth coordinate of the second point (3D).<\/small><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"66825\">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> Your Results<\/h3><div class=\"result-box\"><div class=\"field-result\" id=\"output-1\"><span class=\"field-title\"><span>Distance<\/span><span class=\"result-term\">d<\/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\" id=\"output-2\"><span class=\"field-title\"><span>Horizontal Difference (\u0394x)<\/span><span class=\"result-term\">\u0394x<\/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>Vertical Difference (\u0394y)<\/span><span class=\"result-term\">\u0394y<\/span><\/span><span class=\"field-value\" id=\"result-3\"><\/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-4\"><span class=\"field-title\"><span>Midpoint of the Segment<\/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\" id=\"output-5\"><span class=\"field-title\"><span>Depth Difference (\u0394z)<\/span><span class=\"result-term\">\u0394z<\/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 class=\"field-result\" id=\"output-6\"><span class=\"field-title\"><span>Slope of the line (\u0394y\/\u0394x)<\/span><span class=\"result-term\">m<\/span><\/span><span class=\"field-value\" id=\"result-6\"><\/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-7\"><span class=\"field-title\"><span>Step-by-step solution<\/span><\/span><span class=\"field-value\" id=\"result-7\"><\/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=\"66825\" 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>Distance Between Two Points 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\\[ d = \\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(d\\) \u2014 distance between the two points<\/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>This is the distance formula, a direct application of the Pythagorean theorem: the horizontal gap \\(\\Delta x = x_2 - x_1\\) and the vertical gap \\(\\Delta y = y_2 - y_1\\) form the two legs of a right triangle, and the distance \\(d\\) is its hypotenuse.<\/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>Distance Between Two Points \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> find the distance between \\(P_1 = (1, 2)\\) and \\(P_2 = (4, 6)\\), with all coordinates in meters (these are the calculator's default values).<\/p>\n<p>\\[ \\Delta x = 4 - 1 = 3, \\qquad \\Delta y = 6 - 2 = 4 \\]<\/p>\n<p>\\[ d = \\sqrt{3^2 + 4^2} = \\sqrt{9 + 16} = \\sqrt{25} = 5 \\]<\/p>\n<p><strong>Result:<\/strong> the distance is \\(d = 5\\) m, with \\(\\Delta x = 3\\) m, \\(\\Delta y = 4\\) m, and the midpoint of the segment at \\((2.5,\\ 4.5)\\).<\/p>\n<p>\n\r\n<\/section>\n<h2>How to Use the Calculator<\/h2>\n<ol>\n<li>Enter <strong>x\u2081<\/strong> and <strong>y\u2081<\/strong> under <em>Point 1<\/em> \u2014 the horizontal and vertical coordinates of your first point.<\/li>\n<li>For each coordinate, pick its unit (<strong>m<\/strong>, <strong>cm<\/strong>, <strong>ft<\/strong> or <strong>in<\/strong>) from the dropdown next to the input field.<\/li>\n<li>Enter <strong>x\u2082<\/strong> and <strong>y\u2082<\/strong> under <em>Point 2<\/em>, choosing their units the same way.<\/li>\n<li>Read the results: the <strong>Distance<\/strong>, the <strong>Horizontal Difference (\u0394x)<\/strong>, the <strong>Vertical Difference (\u0394y)<\/strong> and the <strong>Midpoint of the Segment<\/strong>.<\/li>\n<\/ol>\n<p>The result is always expressed in the unit you selected for x\u2081. If you enter the coordinates in different units, the calculator converts everything to meters internally, then converts the answers back to x\u2081's unit, so mixed input like \"x\u2081 in feet, y\u2082 in inches\" still works correctly.<\/p>\n<h2>What Is the Distance Between Two Points?<\/h2>\n<p>In a two-dimensional plane, the distance between two points is the length of the straight segment connecting them \u2014 the shortest possible path. Given \\(P_1 = (x_1, y_1)\\) and \\(P_2 = (x_2, y_2)\\), you can picture a right triangle whose legs are the horizontal run \\(\\Delta x\\) and the vertical rise \\(\\Delta y\\). The distance formula simply applies the Pythagorean theorem to that triangle, which is why squaring, summing and taking a square root is all it takes.<\/p>\n<p>The intermediate results \u0394x and \u0394y are often as useful as the distance itself. They tell you how far apart the points are along each axis and in which direction, which is exactly what you need for problems involving slope, vectors, or displacement in physics. The slope of the line through the two points, for instance, is \\(\\Delta y \/ \\Delta x\\).<\/p>\n<p>The calculator also returns the <strong>midpoint<\/strong> of the segment: the point \\(\\left(\\frac{x_1 + x_2}{2}, \\frac{y_1 + y_2}{2}\\right)\\) that lies exactly halfway between the two given points. It is found by simply averaging the coordinates \u2014 the same idea behind the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/average-calculator\/\">average calculator<\/a>.<\/p>\n<p>This distance is called the <em>Euclidean<\/em> distance because it comes from ordinary Euclidean geometry. It is the standard measure in coordinate geometry, navigation on flat maps, computer graphics, and many machine-learning algorithms that compare feature vectors.<\/p>\n<h2>Limitations and Practical Tips<\/h2>\n<ul>\n<li><strong>2D only.<\/strong> The calculator works in a plane. For three-dimensional points \\((x, y, z)\\) you would add a third squared term: \\(d = \\sqrt{\\Delta x^2 + \\Delta y^2 + \\Delta z^2}\\).<\/li>\n<li><strong>Straight-line distance.<\/strong> The result is the direct \"as the crow flies\" distance, not a path along roads or around obstacles.<\/li>\n<li><strong>Same coordinate system.<\/strong> Both points must be expressed in the same coordinate system (for example, both from the same map grid). Mixing coordinates from different origins gives a meaningless result.<\/li>\n<li><strong>Unit awareness.<\/strong> All outputs use the unit of x\u2081. If you want the answer in inches, set x\u2081's unit to <strong>in<\/strong> before calculating.<\/li>\n<li><strong>Negative coordinates are fine.<\/strong> The differences \u0394x and \u0394y are shown as absolute values; the distance itself is always non-negative.<\/li>\n<\/ul>\n<p>A quick sanity check: the distance can never be smaller than either \\(|\\Delta x|\\) or \\(|\\Delta y|\\), and it is at most \\(|\\Delta x| + |\\Delta y|\\). If your result falls outside that range, double-check the entered coordinates.<\/p>\n<p>If you enjoy the structure of this calculation \u2014 a square root of a sum of squares \u2014 you may also like the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/quadratic-mean-calculator-root-mean-square\/\">quadratic mean (root mean square) calculator<\/a>, which uses the same pattern on a list of numbers, or the <a href=\"https:\/\/wpcalc.com\/en\/mathematics\/nth-root\/\">nth root calculator<\/a> for other roots beyond the square root.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enter the coordinates of two points to get the straight-line distance between them, along with \u0394x, \u0394y and the midpoint of the segment. Supports meters, centimeters, feet and inches.<\/p>\n","protected":false},"author":3168,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[23],"class_list":["post-66825","post","type-post","status-publish","format-standard","hentry","category-mathematics","tag-geometry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/66825","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=66825"}],"version-history":[{"count":2,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/66825\/revisions"}],"predecessor-version":[{"id":67553,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/66825\/revisions\/67553"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=66825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=66825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=66825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}