# Vector Calculator - Dot Product, Cross Product, Magnitude and Angle

> Free online vector calculator for 2D and 3D: addition, scalar multiples, dot and cross products, magnitude, angle, unit vector and projections, with checks.

- URL: https://qilingtools.com/en/math/vector
- Category: Math Tools (https://qilingtools.com/en/math)
- Tags: [Math](https://qilingtools.com/en/tags/math), [Physics](https://qilingtools.com/en/tags/physics)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Works with 2D and 3D vectors: a+b, a−b, k·a, the dot and cross products, both magnitudes, the angle between them, the unit vector of a, the scalar and vector projection of a onto b, and whether the vectors are perpendicular or parallel. The cross product magnitude also gives the parallelogram and triangle areas.

## How to use

1. Choose 2D or 3D
2. Enter the components of a and b, and a scalar k if you need k·a
3. Read the results and copy any component

## Features

- Same tool for 2D and 3D; the 2D cross product is given as a scalar
- Dot product, cross product, magnitudes and the angle in degrees and radians
- Unit vector, scalar projection and vector projection
- Parallelogram and triangle areas from the cross product
- Automatic perpendicular / parallel / general classification

## FAQ

### What is the difference between the dot and cross products?

The dot product is a number, |a||b|cosθ, used for angles and projections. In 3D the cross product is a vector perpendicular to both, whose magnitude is the area of the parallelogram they span.

### How do I find the angle between two vectors?

cosθ = a·b / (|a||b|), then take the inverse cosine. Degrees and radians are both shown, and a zero vector is reported as undefined.

### How do I check whether vectors are perpendicular or parallel?

A dot product of 0 means perpendicular; a zero cross product (in 2D, x₁y₂−x₂y₁ = 0) means parallel. The tool states the conclusion for you.

### What is the scalar projection?

The length of a along b: a·b / |b|. Multiplying by the unit vector of b gives the vector projection, and both are computed.

## Related tools

- [Graphing Calculator](https://qilingtools.com/en/math/graph): Free online function graphing calculator: type sin(x), x^2 or 1/x and see the curve at once, with several functions, parametric and polar curves, PNG export.
- [Scientific Calculator](https://qilingtools.com/en/math/calculator): Free online scientific calculator: type 2*(3+4)^2, sin(pi/6) or log(8,2) and see the answer as you type, with degrees or radians and a history list.
- [Equation Solver](https://qilingtools.com/en/math/equation): Free online equation solver: enter coefficients for linear, quadratic (with discriminant, vertex and complex roots) and cubic equations, plus 2×2 systems.
- [Fraction Calculator](https://qilingtools.com/en/math/fraction): Free online fraction calculator: add, subtract, multiply and divide fractions with automatic reduction, plus fraction ↔ decimal with repeating digits.
- [Percentage Calculator](https://qilingtools.com/en/math/percentage): Free online percentage calculator: X% of Y, X as a percent of Y, increase and decrease, a value after a percentage change and the original behind it.
- [Prime Factorization](https://qilingtools.com/en/math/prime): Free online prime factorization: factor an integer with exponents, list every divisor and their sum, test primality with neighbouring primes, or list a range.
- [GCD and LCM](https://qilingtools.com/en/math/gcd-lcm): Free online GCD and LCM calculator: works with two or more integers, says whether they are coprime, shows each prime factorization and every Euclidean step.
- [Statistics Calculator](https://qilingtools.com/en/math/statistics): Free online statistics calculator: paste a data set for the mean, median, mode, range, quartiles, variance, standard deviation, standard error and outliers.
