#### A PHP Error was encountered

Severity: Warning

Message: count(): Parameter must be an array or an object that implements Countable

Filename: controllers/calculator.php

Line Number: 37

Distance formula Calculator - Online Calculator - Tutorpace

# Distance formula Calculator

## Online Tutoring Is The Easiest, Most Cost-Effective Way For Students To Get The Help They Need Whenever They Need It.

#### SIGN UP FOR A FREE TRIAL

The calculator tool used to calculate the distance between two co-ordinates using distance formula is called as Distance formula calculator. Distance is always a positive number and to calculate the distance between two given points (x1, y1) and (x1, y1), we use the formula, Distance = [(x2 – x1)2 + (y2 – y1)2]1/2.

Example 1: Find the distance between the two co-ordinates using distance formula for (2, 1) and (6, 1)?

Given two co-ordinate points are (2, 1), (6, 1).

The distance formula for (x1, y1) and (x2, y2) are [(x2 – x1)2 + (y2 – y1)2]2

x1 = 2,  y1 = 1, x2 = 6,  y2 = 1.

Therefore distance = [(6 - 2)2 + (1 - 1)2]1/2 = [42 + 02]1/2 = 161/2 = 4.

Hence distance = 4.

Example 2: Find the distance between the two co-ordinates using distance formula for (6, 0) and (10, 3)?

Given two co-ordinate points are (6, 0), (10, 3).

The distance formula for (x1, y1) and (x2, y2) are [(x2 – x1)2 + (y2 – y1)2]1/2

x1 = 6,  y1 = 0, x2 = 10, y2 = 3.

Therefore distance = [(10 - 6)2 + (3 - 0)2]2 = [42 + 32]1/2

(16 + 9)1/2 = 251/2 = 5.

Hence distance = 5.