Switch between point, slope, or standard inputs. Get clean equations in multiple formats instantly here. Perfect for homework, graphing, and quick geometry checks daily.
Choose a base-line input style, then pick whether you want a parallel or perpendicular line through your point.
Use these sample values to test the calculator quickly.
| Base line mode | Base line | Request | Point (x₀, y₀) | Expected new line |
|---|---|---|---|---|
| Slope-intercept | y = 2x - 4 | Parallel | (3, 0) | y = 2x - 6 |
| Two points | (1, 2) and (5, 10) | Perpendicular | (0, 0) | y = -0.5x |
| General | 2x - 3y + 6 = 0 | Parallel | (-3, 2) | 2x - 3y + 12 = 0 |
| Vertical | x = 4 | Perpendicular | (2, -1) | y = -1 |
Ax + By + C = 0.
For non-vertical lines, slope is m = −A/B.
y = mx + b converts to
mx − y + b = 0.
(x₁,y₁) and (x₂,y₂),
use A = y₁ − y₂, B = x₂ − x₁, C = x₁y₂ − x₂y₁.
A and B,
set C′ = −(Ax₀ + By₀).
(A,B) → (B,−A), then
C″ = −(B x₀ − A y₀).
B = 0 the line is vertical (x = −C/A).
A perpendicular line to a vertical line is horizontal, and vice versa.
(x₀, y₀) the new line must pass through.Article
Parallel and perpendicular lines appear in coordinate geometry, design layouts, and graph interpretation. This calculator builds a new line that keeps direction or turns ninety degrees, while forcing it through a chosen point. It outputs several equation styles so you can paste results into graphers or show work neatly.
You can define the base line four ways: slope–intercept, two points, general coefficients, or a vertical x = k line. These options match typical textbook problems and reduce conversion mistakes. After you select a mode, only the relevant fields remain visible, keeping the form clean.
For a parallel line, the slope and direction must match the original. In general form Ax + By + C = 0, A and B control direction, so they stay the same. The calculator recomputes the constant so the new line passes through (x0, y0), preserving parallelism exactly.
For a perpendicular line, the direction must rotate by 90°. With slopes, that means m_perp = −1/m when the base line is not vertical or horizontal. In general form, the normal vector (A, B) becomes (B, −A), which guarantees right angles without fragile slope division.
Working in general form is useful when fractions are messy. The slope is m = −A/B, the x‑intercept is −C/A, and the y‑intercept is −C/B when those denominators are nonzero. The calculator reports these intercepts so you can sketch the line quickly and cross‑check with the graph.
Vertical lines have undefined slope, so slope formulas can break. If the base line is x = k, any parallel line is another x = constant, and a perpendicular line is horizontal y = constant. The tool detects B = 0 and switches to safe expressions automatically.
After calculating, confirm that your chosen point satisfies the new equation by substitution. For parallel results, compare slopes; for perpendicular results, verify the product of slopes is −1 when applicable. Use the CSV for spreadsheets, or the PDF for sharing assignments and reports. Saved results stay in your session, so downloads always match the latest calculation you made.
Use slope–intercept when you already know m and b. If you have two measured points, choose the two‑point mode. For worksheet equations written as Ax + By + C = 0, pick general mode.
It keeps the same direction numbers A and B, then recomputes the constant so the new equation is true at (x₀, y₀). This guarantees identical slope and never changes the line’s orientation.
Instead of dividing by slope, the tool rotates the normal vector from (A, B) to (B, −A). That creates a right angle even for steep lines, fractions, and mixed sign coefficients.
Yes. If the base is x = k, any parallel output is another x = constant. A perpendicular output becomes a horizontal line y = constant, so you always get a valid equation.
Different tasks prefer different forms. Slope‑intercept is great for graphing, point‑slope matches textbook steps, and general form is clean for algebra. Seeing all formats helps you verify that they describe the same line.
CSV exports a key‑value summary for spreadsheets. PDF creates a simple, printable page with the base line, chosen point, and new line formats. Downloads use your latest calculation stored in the session.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.