Coordinate Distance Calculator
Calculate the distance between two points in a coordinate plane using Euclidean, Manhattan, Chebyshev, and Minkowski metrics with midpoint, slope, and angle analysis.
Calculate the angle between two 2D or 3D vectors using the dot product formula. Includes magnitudes, dot product, cross product, projection, parallel/perpendicular detection, and visual gauge.
The angle between two vectors is a fundamental concept in linear algebra, physics, computer graphics, and machine learning. It measures how much two directions diverge, from 0° (perfectly aligned) through 90° (perpendicular) to 180° (opposite). The standard formula uses the dot product: cos θ = (A · B) / (|A| |B|).
This calculator handles both 2D and 3D vectors. Enter the components of each vector and see the angle in degrees and radians, the dot product, the cross product (full 3D vector or scalar z-component for 2D), the magnitude of each vector, the cosine of the angle, and the scalar and vector projections.
Parallel and perpendicular relationships are detected automatically. Parallel vectors (0° or 180°) have a dot product equal to ±|A||B|, while perpendicular vectors have a dot product of exactly zero. These checks are essential in physics (force decomposition), computer graphics (normal testing), and data science (cosine similarity).
The visual angle gauge gives a quick intuitive sense of where your angle falls on the 0°–180° spectrum. The magnitude comparison bar chart shows |A|, |B|, |A+B|, and |A−B|, illustrating the triangle inequality and parallelogram law. A reference table of notable angles (0°, 30°, 45°, 60°, 90°, etc.) helps put your result in context.
Presets demonstrate classic cases — orthogonal basis vectors, 45° diagonals, parallel and anti-parallel pairs — making it easier to build intuition or verify your understanding.
Use this page when the angle is only one part of the vector comparison. It keeps the dot product, magnitudes, projection, and cross-product information together so you can see why the angle has its reported value and how the vectors relate geometrically.
cos θ = (A · B) / (|A| · |B|)
Dot product: A · B = Ax·Bx + Ay·By + Az·Bz
Cross product (3D): A × B = (AyBz − AzBy, AzBx − AxBz, AxBy − AyBx)
|V| = √(Vx² + Vy² + Vz²)
Projection of A onto B: proj = (A·B / |B|²) · B
Scalar projection: comp = A·B / |B|Result: A right angle between the sample vectors
With one sample vector aligned to the x-axis and the comparison vector orthogonal to it, the dot product becomes 0, which means the vectors meet at 90°. The other outputs confirm that through magnitudes and projections.
Calculate the angle between two 2D or 3D vectors using the dot product formula. Includes magnitudes, dot product, cross product, projection, parallel/perpendicular detection, and visual gauge. Use it when you need a repeatable calculation in the math / geometry category and want the setup, result, and supporting values kept together. This is especially helpful when small input changes, unit choices, or rounding decisions can change the final number.
Start by confirming that the inputs match the formula shown on the page. Then compare the main output with the worked example and any secondary values shown by the calculator. If the result will be used in another calculation, keep extra precision until the final step and record the assumptions beside the number.
Treat the result as a calculation aid rather than a substitute for context. For schoolwork, include the formula and substitution steps. For planning, technical, financial, or health-related decisions, verify important numbers against primary records, current rules, or a qualified professional before acting on them.
Last updated:
Use the dot product formula: θ = arccos((A·B) / (|A|·|B|)). Compute the dot product, divide by the product of magnitudes, and take the inverse cosine.
It means the vectors are perpendicular (orthogonal). The angle between them is exactly 90°.
In 3D, the cross product A×B is a vector perpendicular to both A and B, with magnitude |A||B|sin θ. In 2D, it simplifies to a scalar (the z-component).
No — the angle between two vectors is always between 0° and 180° (inclusive). The arccos function naturally returns values in this range.
Two vectors are parallel if their cross product is zero (or the angle is 0° or 180°). Equivalently, one is a scalar multiple of the other.
Cosine similarity is cos θ = (A·B)/(|A||B|), the same formula this calculator uses. It ranges from −1 (opposite) through 0 (perpendicular) to 1 (identical direction), and is widely used in NLP, recommendation systems, and clustering.
Calculate the distance between two points in a coordinate plane using Euclidean, Manhattan, Chebyshev, and Minkowski metrics with midpoint, slope, and angle analysis.
Enter any angle in degrees or radians to find sin, cos, tan, csc, sec, cot, (x, y) coordinates, quadrant, and reference angle on the unit circle. Common angles table included.
Solve any right triangle from two known values — legs, hypotenuse, or angles. Computes all sides, angles, area, perimeter, inradius, circumradius, and altitude. Includes Pythagorean triple presets.