We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
If this tool helped you, you can buy us a coffee ☕
Free online point to line distance calculator. Quickly calculate the perpendicular distance from a point to a line using two-point or general equation (Ax+By+C=0) forms.
Formulas
d = |A·x₀ + B·y₀ + C| / √(A² + B²)
Foot of Perpendicular Coordinates: x_f = x₀ − A·(A·x₀ + B·y₀ + C)/(A² + B²), y_f similarly
Two-point form can be converted to general form: A = y₂ − y₁, B = −(x₂ − x₁), C = x₂·y₁ − x₁·y₂
3x + 4y − 12 = 0(1.6, 1.8)In geometry problem-solving or engineering surveying, you often need to quickly find the perpendicular distance from a point to a line. This tool accurately calculates the distance based on the point coordinates and line parameters you provide. It supports two ways to define a line: two-point form (passing through two points on the line) and general form (Ax+By+C=0). The distance from a point to a line is the length of the perpendicular line segment from the point to the line, which is a fundamental concept in analytic geometry.
All coordinates and coefficients must be real numbers; the tool does not support imaginary numbers. The two points entered in the two-point form cannot overlap, and A and B in the general form cannot both be 0 simultaneously. Calculation results are rounded to an appropriate number of decimal places. When the point lies exactly on the line, the distance is 0, and the result will display normally. This tool runs entirely in your browser and does not upload any data, ensuring your privacy and security.
Point to line distance formula: d = |Ax₀ + By₀ + C| / √(A² + B²). If two points on the line (x₁,y₁) and (x₂,y₂) are known, you can first convert them to the general form: A = y₁ - y₂, B = x₂ - x₁, C = x₁y₂ - x₂y₁. In engineering CAD verification, this distance can be used to determine whether a point falls within an allowable tolerance range. Be sure to keep units consistent and avoid sign errors.
JSON to Protobuf Converter
Free online JSON to Protobuf converter. Instantly generate Protocol Buffers message definitions from JSON data.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.
Online JSON to TOML Converter
Quickly convert JSON data to TOML format. A free online tool perfect for migrating configuration files.

Online JWT Parser & Decoder
Parse JWT headers, payloads, and key information online. No installation required—just paste and decode.
JSON to Protobuf Converter
Free online JSON to Protobuf converter. Instantly generate Protocol Buffers message definitions from JSON data.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.
Online JSON to TOML Converter
Quickly convert JSON data to TOML format. A free online tool perfect for migrating configuration files.

Online JWT Parser & Decoder
Parse JWT headers, payloads, and key information online. No installation required—just paste and decode.
Online TOML to JSON Converter
Free online TOML to JSON converter. Easily convert TOML configuration files into JSON format for seamless cross-platform deployment and API integration.