Vector Addition Calculator

Add two vectors component by component and read the sum, its magnitude and its direction angle.

Physics and EnergyUpdated 2026-11-183 min read
Vector Addition Calculator
Resultant vector a + b
...
x component of the resultant...
y component of the resultant...
Magnitude of the resultant...
Direction of the resultant...

What it does

Adding two vectors means placing them head to tail and drawing the arrow from the start of the first to the tip of the second. Doing that on paper with a ruler is slow and imprecise. The same result comes from adding the components, because motions along perpendicular axes do not affect one another.

The rule is simple: add the x parts together and the y parts together. The pair you get is the resultant, and from those two numbers the Pythagorean theorem gives its length while a tangent inverse gives its direction. This is the analytical method that physics texts teach alongside the graphical one.

Direction needs a little care. A plain arctangent of y over x cannot tell which quadrant the arrow sits in, because the same ratio appears in opposite quadrants. This tool uses atan2, which reads the signs of both components and returns an angle measured counterclockwise from the positive x axis, in degrees from 0 to 360.

For the defaults a = (3, 4) and b = (1, 2), the components add to (4, 6). The magnitude is the square root of 52, about 7.211, and the direction is 56.3 degrees. Every result updates when you change a component, including the two signs of the sum.

The page handles two dimensional vectors with unitless components. If your numbers carry units, both vectors must use the same ones, and the resultant then carries those units. No unit selector appears here because the arithmetic is the same in any consistent system.

How to use

  1. Enter the x and y components of the first vector a.
  2. Enter the x and y components of the second vector b.
  3. Read the resultant first, shown as an ordered pair.
  4. Use the two component rows when you need the x and y totals on their own.
  5. Read the magnitude as the length of the combined arrow.
  6. Read the direction as the angle from the positive x axis, between 0 and 360 degrees.

Formula

R = a + b = (ax + bx, ay + by), so Rx = ax + bx and Ry = ay + by. Magnitude |R| = square root of (Rx squared + Ry squared). Direction theta = atan2(Ry, Rx) in degrees, reported from 0 to 360.
a
The first vector, with components ax and ay.
b
The second vector, with components bx and by.
R
The resultant vector, with components Rx and Ry.
Rx
The total x component, ax + bx.
Ry
The total y component, ay + by.
theta
Direction of R measured counterclockwise from the positive x axis, in degrees.

Using atan2 instead of a simple ratio is what keeps the quadrant correct. When both Rx and Ry are negative, a plain arctangent would point to the first quadrant, while atan2 returns the true third quadrant angle. If the resultant is the zero vector there is no direction to report, and the tool prints undefined rather than an arbitrary angle. Order does not matter here because vector addition is commutative: a + b equals b + a.

Worked example

Example: add (3, 4) and (1, 2)

Defaults: a = (3, 4) and b = (1, 2).

  1. x component: Rx = 3 + 1 = 4.
  2. y component: Ry = 4 + 2 = 6.
  3. The resultant is (4, 6).
  4. Magnitude: square root of (4 squared + 6 squared) = square root of 52 = 7.211.
  5. Direction: atan2(6, 4) = 56.3 degrees from the positive x axis.
  6. Check on magnitudes: 5 + 2.236 = 7.236, which is not 7.211 because the arrows are not parallel.
  7. The tool shows (4, 6), 4, 6, 7.211 and 56.3 deg.

Reference table

Resultants for four pairs of vectors
Vectors a + bResultantMagnitude and direction
(3, 4) + (1, 2)(4, 6)7.211 at 56.3 deg
(-2, 5) + (1, -1)(-1, 4)4.123 at 104 deg
(-1, 0) + (-2, -3)(-3, -3)4.243 at 225 deg
(0, 0) + (0, 0)(0, 0)0, direction undefined

Limits

  • Adds exactly two vectors in two dimensions. More vectors or a z component need a separate step.
  • Components must share a unit system. Mixing metres with feet produces a number with no physical meaning.
  • The zero resultant has no direction, so the angle row reads undefined instead of a value.
  • Results are rounded to three decimals and the angle to one decimal, which trims repeating roots.

Common mistakes

  • Adding magnitudes instead of components. Only parallel vectors allow that shortcut.
  • Forgetting the sign of a component, which can move the resultant into the wrong quadrant.
  • Using a plain arctangent and accepting an angle that is 180 degrees off for negative x.
  • Reading the direction as an angle above the x axis when the resultant points below it.
  • Reporting 0 degrees for a zero resultant. With no arrow there is no direction to report.

Try it yourself

Quick checks. Answers sit tucked under each question.

Add (-2, 5) and (1, -1).

The components give (-1, 4). The magnitude is the square root of 17, or 4.123, and atan2 puts the direction at 104 deg.

Add (-1, 0) and (-2, -3).

The result is (-3, -3). Its magnitude is the square root of 18, or 4.243, and the direction is 225 deg in the third quadrant.

Why is (3, 4) plus (1, 2) shorter than 5 plus 2.236?

Magnitudes add only for parallel arrows. Here the vectors meet at an angle, so the resultant is 7.211 rather than 7.236.

Questions

What is the resultant of two vectors?

It is the single vector that has the same effect as the two applied together, found by adding matching components and then converting back to magnitude and direction.

Does the order of addition matter?

No. Vector addition is commutative, so a + b and b + a give the same resultant and the same direction.

How is direction measured here?

From the positive x axis, counterclockwise, in degrees from 0 to 360. The atan2 function uses both component signs to pick the right quadrant.

Can the magnitude be smaller than both input magnitudes?

Yes. If the vectors largely oppose each other their components cancel, and the resultant can be shorter than either one.

What happens when the two vectors are equal and opposite?

Every component cancels, the resultant is (0, 0) with magnitude zero, and there is no direction to report.

Can I enter negative components?

Yes. Negative values simply point left or down, and the tool keeps the signs through the addition and the atan2 direction step.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.