Parallel and Perpendicular Line Calculator
Find the equations of the lines parallel and perpendicular to a reference line, through a given point. Returns slope, y-intercept, slope-intercept form, and standard form for both, with a step-by-step derivation.
Input
x-coordinate of the point both lines pass through.
y-coordinate of the point both lines pass through.
Slope of the line to be parallel/perpendicular to.
Output
More ways to use this tool
REST API
curl -X POST https://api.iotools.cloud/v1/tool/parallel-and-perpendicular-line-calculator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"x": "1",
"y": "3",
"slope": "2"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `parallel-and-perpendicular-line-calculator` tool (Parallel and Perpendicular Line Calculator) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.
Embed widget
<iframe
src="https://iotools.cloud/embed/parallel-and-perpendicular-line-calculator/"
width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
title="Parallel and Perpendicular Line Calculator — iotools.cloud"
sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
allow="clipboard-write"
style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>Drop this into your own page — free, no key required, just a link back.
| Cost per API/MCP call | From 5 credits |
|---|---|
| Need more credits? | View pricing |
Also available with
Guides
The Parallel and Perpendicular Line Calculator finds the equations of the lines that are parallel and perpendicular to a reference line, passing through a given point. Enter the reference line's slope and a point (x, y), and it returns both lines' slope, y-intercept, slope-intercept form, and standard form, with a step-by-step derivation.
It's built for algebra and geometry students constructing parallel/perpendicular lines by hand, and anyone who needs the equation of a line through a specific point without redoing the slope algebra.
How to use it
- Enter the coordinate x and y of the point both lines pass through.
- Enter m — the slope of the reference line they're parallel/perpendicular to.
- Read Parallel Line and Perpendicular Line for the slope-intercept equations, their Standard Form counterparts, the individual Slope and Y-Intercept values, and Step-by-Step Derivation for the full working.
Results update automatically as you type. For example, entering x = 1, y = 3, m = 2 returns parallel line y = 2x + 1 and perpendicular line y = -0.5x + 3.5.
How is the parallel line found?
A line parallel to the reference line shares its slope exactly — only the y-intercept changes to pass through the new point:
m_parallel = m
b = y − m·xHow is the perpendicular line found?
A line perpendicular to the reference line has the negative reciprocal slope — flip the fraction and change the sign:
m_perpendicular = −1 / m
b = y − m_perpendicular·xTwo lines are perpendicular exactly when their slopes multiply to −1 (m · (−1/m) = −1), which is why the negative reciprocal is the rule.
What if the reference slope is 0?
A horizontal line (slope 0) has no reciprocal — dividing by zero is undefined. Geometrically, the perpendicular to a horizontal line is vertical, which can't be written in slope-intercept form (y = mx + b) at all. The calculator reports it as its own vertical-line equation, x = [the point's x-coordinate], instead.
Privacy
This calculator runs entirely in your browser. Your coordinates and slope are never uploaded, logged, or stored — the computation happens locally on your device.
Related tools
To build a line's equation from a point and slope directly (without the parallel/perpendicular step), see the Point-Slope Form Calculator. For slope-intercept and standard form from either a slope/intercept pair or two points, see the Slope Intercept Form Calculator.