Calculate the angle between two vectors

Calculator for calculating the angle between two vectors


This page calculates the angle between two vectors. To perform the calculation enter the X/Y coordinates of the two vectors. Then click on the 'Calculate' button.


Vector angle calculator

 Input
Vector a Vector b
x
y
Decimal places
 Results
Angle


Formulas of angle between vectors


\(\displaystyle cos(θ) = \frac{\vec{a}·\vec{b}}{|\vec{a}|·|\vec{b}|}\)

The scalar product of the two vectors is in the numerator and the product of the absolute value (lengths) of the vectors is in the denominator.


Example


Calculation of the angle between \(\displaystyle \vec{a} = \left[\matrix{4 \\ 5 }\right]\)   and   \(\displaystyle \vec{b} = \left[\matrix{-7 \\ \;\;2 }\right]\)


1. Calculate scalar product

\(\displaystyle \vec{a}·\vec{b}=4·(-7)+5·2=(-28)+10=-18\)

2. Calculate lengths of vectors

\(\displaystyle |\vec{a}| = \sqrt{4^2+5^2} =\sqrt{16+25}=\sqrt{41}\)
\(\displaystyle |\vec{b}| = \sqrt{-7^2+2^2} =\sqrt{49+4}=\sqrt{53}\)

3. calculate formula

\(\displaystyle cos(θ)=\frac{-18}{\sqrt{41}\cdot\sqrt{53}} ≈ 0.3861\)

\(\displaystyle θ=cos^{-1}(0.3861)≈112.71°\)

1D Graphics Functions

Angle between two linesAngle between two vectorsCenter of a straight lineDistance of two pointsDistance of a point and a lineRise over RunSlope of a lineStraight line equationCircular arcHelixKoch snowflake

2D Graphics Functions

Angles

From Degree, Min, Sec to DecimalFrom Degree to PercentAngle sumAngles from side lengths

Triangles

Bisector of a triangleEquilateral triangleRight trianglesRight triangle from 1 side, 1 angleIsosceles right trianglesIsosceles trianglesTriangle area from 2 sides, 1 angleTriangle area from 1 side, 2 anglesTriangle, Incircle, given 3 sidesTriangle area given base and heightTriangle vertices, 3 x/y points

Quadrilateral

SquareRectangleGolden RectangleRectangle to SquareRhombus, given varios parameterRhombus area from diagonal e, fParallelogram from 2 sides, 1 angleParallelogram area from side and heightCyclic QuadrilateralGeneral QuadrilateralConcave QuadrilateralArrowhead QuadrilateralCrossed SquareFrameKiteKite Area from 2 diagonalHalf Square KiteRight KiteSymmetrical TrapezoidUnsymmetrica TrapezoidRight Angle TrapezoidTrapezoid-AreaTrapezoid AngleTri-equilateral Trapezoida

Polygons

TriangleSquarePentagonHexagonHeptagonOctagonNonagonDecagonHendecagonDodecagonHexadecagonN-GonPolygon ringConcave hexagonAxial Symmetric PentagonStretched HexagonStretched Octagon PentagramHexagramOctagramStar of Lakshmi

Circular

AnnulusAnnulus sectorCircleCircular anglesCircular arcsCircular sectorCircular segmentEllipseParabolic archSquaring the Circle

3D Graphics Functions

Angular

Cuboid Square Pillar Antiprism Hexagonal prism Triangular prism Regular prism Oblique prism Ramp Anticube Wedge Right Wedge RhombohedronParallelepipedTetrahedron, irregularTetragonal TrapezohedronPentagonal TrapezohedronPrismatoidStellated Octahedron Stellated DodecahedronGreat Stellated DodecahedronGreat Dodecahedron

Platonic solids

TetrahedronCubeOctahedronDodecahedron Icosahedron

Pyramids

Triangular PyramidPyramidPentagonal PyramidHexagonal PyramidHeptagonal PyramidRegular PyramidPyramid, truncated, squarePyramid, truncated, rectangularPyramid FrustumTriangular BipyramidPentagonal BipyramidHexagonal BipyramidRegular BipyramidTriangular Pyramid

Archimedean solids

CuboctahedronIcosidodecahedronRhombicosidodecahedronRhombicuboctahedronSnub cubeTruncated cubeSnub dodecahedronTruncated cuboctahedronTruncated dodecahedronTruncated icosahedronTruncated icosidodecahedronTruncated octahedronTruncated tetrahedron

Catalan solids

Disdyakis TriacontahedronDeltoidal HexecontahedronDeltoidal IcositetrahedronHexakis OctahedronPentagonal IcositetrahedronPentakis DodecahedronRhombic DodecahedronRhombic TriacontahedronTetrakis HexahedronTriakis OctahedronTriakis TetrahedronTriakis Icosahedron

Johnson solids

Square PyramidPentagonal PyramidTriangular CupolaSquare CupolaPentagonal CupolaRotundaElongated Triangular PyramidElongated Square PyramidElongated Pentagonal PyramidTriangular BipyramidPentagonal BipyramidElongated Square BipyramidGyrobifastigiumGyroelongated Square DipyramidSnub Disphenoid

Round solids

SphereSpherical capSpherical sectorSpherical segmentSpherical ringSpherical wedgeSpherical cornerSpheroidTriaxial ellipsoidEllipsoid volumeSpherical shellSolid anglesTorusSpindle torusOloidElliptic Paraboloid

Cones

ConeTruncated coneElliptic coneTruncated elliptic coneBiconeDouble conePointed pillarRounded cone

Cylinder

CylinderOblique cylinderTruncated cylinderCylindrical wedgeHollow cylinderHalf cylinderCylindrical sectorCylindrical segmentElliptical cylinderBicylinderTricylinderHyperboloid



Is this page helpful?            
Thank you for your feedback!

Sorry about that

How can we improve it?