Math & ModelingIntermediate2D simulation~12 min

Vector Addition

Walk 3 km east and then 4 km north, and you end up 5 km from where you started — not 7. Quantities that have a direction, like displacement, velocity and force, do not add like ordinary numbers. Drag two arrows and discover the rules for combining them.

Drag the arrow tips
Method
5
30

Angle measured anticlockwise from the positive x-axis.

4
120

Key

  • Vector A
  • Vector B
  • Resultant R
Resultant |R|
—
Direction of R
—
R components
—
A (x, y)
—
B (x, y)
—
Angle between A and B
—

How to use this simulator

  1. Drag the circles at the tips of vector A (teal) and vector B (purple), or set their size and direction with the sliders.
  2. The orange arrow is the resultant R. Its length, direction and components appear below the grid.
  3. Switch method to compare tip-to-tail and parallelogram addition — they always give the same R — or to see subtraction A − B.
  4. Try the Same direction, Opposite and Perpendicular buttons, and turn on components to see the x and y parts.
  5. Reset restores the starting vectors.

What is a vector?

A scalar is a quantity with size only, such as mass (5 kg) or temperature (20 °C). Avector has both magnitude (size) and direction, such as a displacement of 5 km north-east or a force of 10 N downward. We draw a vector as an arrow: its length shows the magnitude and its orientation shows the direction. Moving an arrow without rotating or resizing it does not change the vector.

Adding vectors graphically

  • Tip-to-tail method: draw A, then start B at the tip of A. The resultant runs from the tail of A to the tip of B.
  • Parallelogram method: draw A and B from the same starting point and complete the parallelogram. The diagonal from the shared start is the resultant.

Both methods always give the same answer, and the order does not matter: A + B = B + A. The size of the resultant depends on the angle between the vectors — largest when they point the same way, smallest when they point in opposite directions.

Adding with components

Any vector can be split into an x-component and a y-component — how far it goes across and how far up. Adding vectors then becomes simple arithmetic: add all the x-components, add all the y-components, and rebuild the resultant from the totals. This is how scientists and engineers add many forces or velocities at once.

Subtracting vectors

The negative of a vector, −B, has the same length as B but points the opposite way. To subtract, add the negative: A − B = A + (−B). When A and B start at the same point, A − B is the arrow from the tip of B to the tip of A. This is how you find a change in velocity or the position of one object relative to another.

Formulas

Components: vₓ = |v| cos θ v_y = |v| sin θSum: R = (Aₓ + Bₓ, A_y + B_y)Magnitude: |R| = √(Rₓ² + R_y²) Direction: θ = tan⁻¹(R_y / Rₓ) (check the quadrant)

For two vectors with angle φ between them, the law of cosines gives:

|A + B|² = |A|² + |B|² + 2|A||B| cos φ

Worked example

A student walks 3 km east and then 4 km north. What is their displacement from the start?

  1. Write each step as components: a = (3, 0) and b = (0, 4), with x east and y north.
  2. Add the components: a + b = (3 + 0, 0 + 4) = (3, 4).
  3. Find the magnitude with Pythagoras: |a + b| = √(3² + 4²) = √25 = 5 km.
  4. Find the direction: θ = tan⁻¹(4 / 3) ≈ 53.1° north of east.

The student walked 7 km in total, but their displacement is only 5 km. Distance adds up every step; displacement is a vector, so steps in different directions partly cancel. Try it in the simulator by setting the two vectors to (3, 0) and (0, 4).

Key terms

Magnitude
The size or length of a vector, always positive or zero.
Resultant
The single vector that has the same effect as two or more vectors combined.
Component
The part of a vector along one axis.
Unit vector
A vector of length 1 that indicates a direction only.

Real-world applications

  • Navigation: pilots and sailors add their own velocity to the wind or current velocity to find their true path over the ground.
  • Forces: engineers add all the forces on a bridge or building to check that they balance.
  • Sport: a swimmer crossing a river ends up downstream because their velocity adds to the river’s.
  • Computer graphics and games: positions, movement and lighting are calculated with vector arithmetic.

Common misconceptions

  • “The resultant’s length is the sum of the lengths.” Only when the vectors point in exactly the same direction.
  • “Moving an arrow changes the vector.” A vector is defined by size and direction, not position.
  • “tan⁻¹ always gives the right angle.” It only returns angles between −90° and 90°; you must check which quadrant the vector is in.

Key takeaways

  • Vectors have magnitude and direction and add tip-to-tail.
  • Adding components separately is the most reliable method.
  • The resultant is between |A| − |B| and |A| + |B|, depending on the angle.
  • Subtraction means adding the opposite vector.

Knowledge check

Vector Addition: test your understanding

Answer each question to get instant feedback and an explanation. Use the simulator to check your thinking.

7 questions3 basic2 intermediate2 advanced

0 of 7 answered

  1. Q1BasicWhich of these is a vector quantity?
    Show answer

    Answer: C. Velocity

    A vector has both magnitude and direction. Velocity (for example 20 m/s north) is a vector; mass, temperature and time have size only — they are scalars.

  2. Q2BasicA vector of length 3 and a vector of length 4 point in the same direction. What is the length of their sum?
    Show answer

    Answer: C. 7

    Vectors in the same direction add like ordinary numbers: 3 + 4 = 7. Use the “Same direction” button to check.

  3. Q3BasicThe same two vectors (3 and 4) point in opposite directions. What is the length of their sum?
    Show answer

    Answer: A. 1

    Opposite vectors partly cancel: 4 − 3 = 1, and the resultant points in the direction of the larger vector.

  4. Q4IntermediateA vector of length 3 and a vector of length 4 are perpendicular. What is the length of their sum?
    Show answer

    Answer: B. 5

    The two vectors and the resultant form a right triangle, so |R| = √(3² + 4²) = √25 = 5 (the Pythagorean theorem).

  5. Q5IntermediateA = (2, 5) and B = (4, −1). What is A + B?
    Show answer

    Answer: A. (6, 4)

    Add the components separately: x: 2 + 4 = 6, y: 5 + (−1) = 4. This works for any vectors, whatever their directions.

  6. Q6AdvancedA vector has magnitude 10 and direction 30° above the positive x-axis. What is its x-component?
    Show answer

    Answer: B. About 8.66

    The x-component is |v|·cos θ = 10 × cos 30° ≈ 10 × 0.866 = 8.66. The y-component is 10 × sin 30° = 5.

  7. Q7AdvancedWhat does the vector A − B represent when both start at the origin?
    Show answer

    Answer: B. The vector from the tip of B to the tip of A

    A − B = A + (−B). Geometrically it is the arrow that goes from B’s tip to A’s tip, because B + (A − B) = A. In physics this is how you find relative velocity or displacement between two positions.

References and further reading

  1. Ling, S. J., Sanny, J., & Moebs, W. (2016). University Physics Volume 1, Section 2.1: Scalars and Vectors. OpenStax. openstax.org (opens in a new tab)
  2. Ling, S. J., Sanny, J., & Moebs, W. (2016). University Physics Volume 1, Section 2.2: Coordinate Systems and Components of a Vector. OpenStax. openstax.org (opens in a new tab)
  3. Abramson, J. (2021). Precalculus 2e, Section 8.8: Vectors. OpenStax. openstax.org (opens in a new tab)

This simulator is a simplified educational model. Found an error? Let us know. See our educational disclaimer.