Vector Calculator
Add or subtract two vectors of any dimension, and find the resulting vector's magnitude.
- Free to use
- Accurate results
- No registration required
- Works on all devices
Enter two vectors and an operation to compute the resulting vector and its magnitude.
Components separated by commas — works for 2D, 3D, or higher dimensions.
Your result
5, 7, 9
Result vector
Magnitude12.45
AI explanation
Formula
Add/subtract corresponding components; magnitude = √(sum of squared components)Worked example
(1,2,3) + (4,5,6)
| Field | Value |
|---|---|
| Vector A | 1,2,3 |
| Vector B | 4,5,6 |
| Operation | add |
| Result vector | 5, 7, 9 |
| Magnitude | 12.4499 |
Assumptions
- Both vectors must have the same number of components.
Frequently asked questions
How do you add vectors?
Add each pair of corresponding components — (1,2,3) + (4,5,6) = (1+4, 2+5, 3+6) = (5,7,9).
What does "magnitude" mean?
The vector's length, calculated as the square root of the sum of its squared components (the Pythagorean theorem generalized to any dimension).
Does this work for 2D vectors?
Yes — enter just two components (e.g. "3,4") for a 2D vector.