Distance & Midpoint Calculator

Enter coordinates of two points (x1, y1) and (x2, y2). We’ll compute distance, midpoint, slope, and line equation.

Distance:
d = √[(x2−x1)² + (y2−y1)²]
Midpoint:
M = ((x1+x2)/2, (y1+y2)/2)
Slope:
m = (y2−y1)/(x2−x1)
Line:
y = mx + b
Diagram

Support This Free Tool

Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.

500K+ users
200+ tools
100% private
Privacy Guarantee: Private keys you enter or generate are never stored on our servers. All tools are served over HTTPS.