Vector Calculator
Add, subtract, and find the magnitude, dot product, and angle between 2D or 3D vectors.
Did this tool work for you?
How to use this calculator
Vector magnitude is the length. Dot product measures projection. The angle formula uses the relationship between dot product and magnitudes.
- 1
Enter x, y, z components for Vector A and Vector B.
- 2
For 2D vectors, leave the z components as 0.
- 3
Results include magnitude, sum, difference, dot product, angle, and cross product.
Frequently asked questions
What is the dot product used for?
The dot product measures how much two vectors point in the same direction. A · B = |A||B|cos(θ). If the dot product is 0, vectors are perpendicular. If positive, they point roughly the same direction. Used in lighting calculations (angle of incidence), work done by a force, and machine learning (cosine similarity).
What is the cross product?
The cross product A × B produces a new vector perpendicular to both A and B. Its magnitude = |A||B|sin(θ) — the area of the parallelogram formed by A and B. Used to find surface normals in 3D graphics, torque in physics, and angular momentum.
What is a unit vector?
A unit vector has magnitude 1 and represents direction only. Divide any vector by its magnitude: û = v / |v|. Unit vectors are used in normalisation, direction specification in physics, and as basis vectors (i, j, k for x, y, z axes).
When are two vectors parallel?
Vectors are parallel when the angle between them is 0° or 180°. Equivalently, when their cross product is the zero vector, or when one is a scalar multiple of the other. Parallel vectors share the same or opposite direction.
Vectors in mathematics and physics
How to use the vector
Use this vector to dd, subtract, and find the magnitude, dot product, and angle between 2d or 3d vectors. Enter your values above and get your result in seconds. The tool is free, works on all devices, and keeps your data private — nothing is stored or shared.
How the vector works
The vector calculator uses standard formulas used in mathematics, science, and engineering. Enter your inputs, and the tool calculates the result instantly in your browser. No server-side processing means your data stays on your device. Results update in real time as you change inputs.
Scalars vs vectors
Scalars have magnitude only: temperature, mass, energy. Vectors have both magnitude and direction: force, velocity, displacement. Speed is scalar (50 km/h); velocity is vector (50 km/h north). This distinction is fundamental in physics — force applied at different angles produces very different outcomes.
Vector addition and the parallelogram law
To add two vectors geometrically, place them head-to-tail; the resultant runs from the first tail to the last head. Equivalently, they form the diagonal of a parallelogram. This is how forces combine in statics, velocities add in navigation, and electric fields superpose.
Vectors in machine learning
In ML, data points are represented as vectors in high-dimensional space. Cosine similarity = (A · B) / (|A| × |B|) measures how similar two documents or embeddings are regardless of length. Word2Vec represents words as 300-dimensional vectors; dot products between them capture semantic relationships.
Vector: how it works
Built on well-established mathematical principles, this tool delivers accurate results for students, researchers, and professionals. Enter your values and get instant clarity without specialist software or manual arithmetic.
Who uses this tool?
Teachers, students, engineers, and data analysts use it to verify calculations, check homework, and solve problems faster. It is intuitive enough for beginners while comprehensive enough for professional use.
Learn more from an authoritative source:
WikipediaScientific Calculator
Evaluate mathematical expressions including trigonometry, logarithms, exponents, and more.
Percentage Calculator
Quickly calculate percentages, percentage change, and percentage of a total.
Fraction Calculator
Add, subtract, multiply, or divide two fractions and get the simplified result instantly.
Ratio Calculator
Simplify ratios, find missing values, and scale ratios up or down.
Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →