Line and Segment Intersection Calculator
Distinguish unique intersections, collinear overlaps, parallel lines and degenerate planar segments on a declared grid.
Loading tool…
How to use Line and Segment Intersection Calculator
Exact BigInt cross products distinguish parallel/collinear and crossing configurations. Infinite-line mode rejects zero-length definitions; segment mode handles point segments. A unique intersection has exact rational coordinates plus decimal output.
- Enter json first endpoint pair, json second endpoint pair.
- Choose the stated convention and check the units and supported model.
- Calculate, inspect the result, then copy or download it.
Good to know
- Two endpoint pairs. Segment endpoints are included; infinite coincident lines do not produce an invented point. Planar coordinates are parsed to a fixed6-decimal grid, magnitude at most1million; exact BigInt orientation/classification on that declared grid. No arbitrary precision beyond it, map projection or GIS/navigation certification.
- Runs locally. Text/JSON fields are capped at30,000 characters; stricter page-specific and numeric-string limits also apply. Numeric inputs are bounded to magnitude1e15 and nonzero magnitude at least1e-100 unless an exact-string mode states otherwise. Approximate summaries use12 significant digits; CSV numeric cells retain the complete stored value and potentially formula-like string cells gain a protective apostrophe; unsupported, non-finite or detected underflow states return an error.
Common questions
What is returned when collinear segments overlap?
The overlapping interval endpoints are returned. The tool does not collapse a continuum of intersections into an arbitrary single point.
Is the input uploaded or saved?
No. The tool calculates inside this browser tab and provides a local download; it does not persist your input.
Keep going with related tools
All math →Vector and Coordinate Calculator
Find dot product, magnitude, displacement distance, angle, and three-dimensional cross product.
MathTwo-variable Linear System Solver
Solve two simultaneous linear equations ax + by = c and dx + ey = f.
MathPoint in Polygon Calculator
Classify query points against one validated simple planar polygon using exact-grid boundary and winding tests.
CalculatorsPump Curve Intersection Workbench
Find every equal-head point or coincident interval between your tabulated pump and system curves without extrapolation.
MathPlanar Polyline Station and Projection Workbench
Locate supplied distances along an ordered planar route or project points onto its nearest finite segment.
MathAffine Coordinate Transform Composer
Apply ordered numeric2D translation, rotation, scaling or skew to a point table, with a guarded inverse mode.