Lelifi·tools

Vector Addition Calculator

Adding 10 units at 30 degrees to 8 units at 120 degrees gives a resultant of 12.806 units at 68.66 degrees. The first vector contributes 8.660 across and 5.000 up, the second contributes -4.000 across and 6.928 up, so the sum is 4.660 across and 11.928 up.

Enter each vector as a magnitude and an angle measured counterclockwise from the positive x axis, and read the resultant length, its direction and the components behind the sum.

By the Lelifi editors ·

Key takeaways

Head to tail: 10 at 30 degrees plus 8 at 120 degreesA 10B 8R 12.8064.660 acrossx: 8.660 + -4.000 = 4.660y: 5.000 + 6.928 = 11.928magnitude 12.806direction 68.66 deg
The resultant runs from the tail of the first vector to the head of the second, and 68.66 degrees is measured from the positive x axis.
Three dimensions: the point (2, 3, 6) sits 7 units outx 2y 3z 6r 72 squared + 3 squared + 6 squared= 4 + 9 + 36 = 49square root of 49 = 7Direction needs two angles in three dimensions,which is why components are quoted instead.
A vector in three dimensions adds one more squared term under the same square root.
On this page
  1. What vector addition does
  2. The component method in four steps
  3. A worked sum: 10 at 30 degrees plus 8 at 120 degrees
  4. Quadrants and the inverse tangent trap
  5. Subtraction and the other diagonal
  6. Three vectors that close a loop
  7. Speed, velocity and the river crossing
  8. Mistakes that survive a sanity check

What vector addition does

A vector carries a size and a direction, and adding two of them means placing the second arrow at the tip of the first and drawing a new arrow from the start of the first to the end of the second. OpenStax College Physics calls this the head to tail rule, and the parallelogram that falls out of it gives the same answer read the other way.

The arithmetic shortcut is that perpendicular components behave like separate problems. Motion east does not change motion north, so the x parts add among themselves and the y parts add among themselves. Two additions and one square root replace a drawing, a ruler and a protractor.

Order does not matter. Adding B to A gives the same resultant as adding A to B, which is why the parallelogram closes either way. Neither does the grouping: three vectors can be summed in any order, which is handy when two of them are easy to combine first.

What does not work is adding the magnitudes. A 3 unit vector east and a 4 unit vector north have a sum of 5 units, because the two are at right angles and the resultant is the hypotenuse. Only vectors pointing the same way have a sum of magnitudes equal to the sum of the parts. NASA's Glenn Research Center works the same rule through a worked aircraft example.

The component method in four steps

Every vector splits into an x part and a y part using the angle it makes with the positive x axis. The x component is the magnitude times the cosine of the angle, and the y component is the magnitude times the sine.

StepOperationOn the example
1x = magnitude x cosine of the angle10 x 0.8660 = 8.660
2y = magnitude x sine of the angle10 x 0.5000 = 5.000
3Add every x, then every y4.660 across, 11.928 up
4Magnitude from the square root of the squares, direction from inverse tangent12.806 at 68.66 degrees

Step 1 is where quadrant matters. The cosine of 120 degrees is -0.5000, so an 8 unit vector at 120 degrees moves 4 units in the negative x direction rather than positive. A calculator in degree mode returns that sign automatically; a hand calculation that drops it puts the resultant in the wrong quadrant and keeps the right magnitude.

Step 4 reverses the process, and the two operations are not symmetric in their accuracy. Magnitudes add in quadrature, so a small relative error in one component barely moves the result. Angles are more fragile, because a resultant with a small x component swings through a wide range of angles for a small change in y.

A worked sum: 10 at 30 degrees plus 8 at 120 degrees

Take A as 10 units at 30 degrees and B as 8 units at 120 degrees. The table shows the components and the totals.

VectorMagnitudeAnglex componenty component
A1030 degrees8.6605.000
B8120 degrees-4.0006.928
Resultant12.80668.66 degrees4.66011.928

The components add to 4.660 across and 11.928 up. Squaring them gives 21.716 and 142.277, and 21.716 + 142.277 = 163.993. The square root of 163.993 is 12.806, which is the magnitude. The direction is the inverse tangent of 11.928 divided by 4.660, and that ratio is 2.5597, whose inverse tangent is 68.66 degrees. Both components are positive, so the angle needs no adjustment.

A drawing confirms the size. The two vectors sit close to a right angle: the angle between them is 90 degrees exactly, since 120 minus 30 is 90. For perpendicular vectors the magnitude of the sum is the square root of the sum of the squares of the magnitudes, and the square root of 100 + 64 = 164 is 12.806. Two routes, one answer.

Quadrants and the inverse tangent trap

Inverse tangent returns an angle between -90 and 90 degrees, which covers only half of the circle. The other half has to be recovered from the signs of the components, or from a two argument arctangent function if the software offers one.

x componenty componentQuadrantWhat to do with inverse tangent
positivepositivefirstUse the angle as returned
negativepositivesecondAdd 180 degrees
negativenegativethirdAdd 180 degrees
positivenegativefourthAdd 360 degrees

The example above has both components positive, so 68.66 degrees stands. Flip the sign of the x component to -4.660 and keep 11.928 up: the ratio becomes -2.5597 and inverse tangent returns -68.66 degrees, which points into the fourth quadrant. Adding 180 degrees gives 111.34 degrees, the correct second quadrant answer.

Software that has atan2 avoids the table. Give it y first and x second, and it reads the signs directly: atan2(11.928, -4.660) returns 111.34 degrees in one call. Passing x first is the classic bug, and it shows up as an answer reflected across the 45 degree line.

Subtraction and the other diagonal

Subtracting a vector means adding its negative, which flips both components. Subtracting B from A adds 4.000 to the x component, taking it from 8.660 to 12.660, and takes the y component from 5.000 down to -1.928.

That difference has magnitude 12.806 as well, because 12.660 x 12.660 = 160.276 and 1.928 x 1.928 = 3.717, and 160.276 + 3.717 = 163.993. Its direction is the inverse tangent of -1.928 divided by 12.660, which is -8.66 degrees, or 351.34 degrees as a compass bearing from the x axis.

The equal magnitudes are not a coincidence. A and B are perpendicular here, since their dot product comes to zero: 8.660 times -4.000 gives -34.64, 5.000 times 6.928 gives 34.64, and the two terms cancel. For perpendicular vectors the parallelogram is a rectangle, and the two diagonals of a rectangle are the same length. Tilt either vector and the two diagonals separate: the sum becomes the longer one and the difference the shorter.

Relative displacement uses the same operation. If a drone moves 6 km east then 2 km north, and a second drone moves 3 km east then 5 km north, the displacement from the second to the first is 3 km east and 3 km south, a distance of 4.243 km on a bearing of 135 degrees.

Three vectors that close a loop

Three vectors of equal length at 0, 120 and 240 degrees add to zero. Each pair is 120 degrees apart, so the three spokes of a wheel pull evenly in all directions and cancel.

VectorMagnitudeAnglex componenty component
A100 degrees10.0000.000
B10120 degrees-5.0008.660
C10240 degrees-5.000-8.660
Total0undefined0.0000.000

A zero resultant has no direction, and that is the correct answer rather than a missing one. A calculator that divides by a zero x component while computing the angle will return infinity or an error, and the honest output is that the vectors are in balance.

This case shows up in rigging and in electrical work. Three ropes at 120 degrees hold a load with no net sideways pull, and three phase power sums to zero in the same geometry. Add a fourth vector and the balance usually breaks: a 10 unit vector at 0 degrees combined with the three above leaves the 10 units at 0 degrees unopposed, because the other three already cancel.

Speed, velocity and the river crossing

Speed is a magnitude and velocity is a vector, so the two combine differently. A boat pointed north at 4 m/s on a river flowing east at 3 m/s travels at 5 m/s over the ground, at 36.87 degrees east of north.

The components make it plain: 4 m/s north is (0, 4) and 3 m/s east is (3, 0), so the sum is (3, 4), whose magnitude is 5 and whose angle is the inverse tangent of 3 over 4, which is 36.87 degrees measured from the north axis. Steering 36.87 degrees upstream of the intended course cancels the current and puts the boat back on a due north track.

Time to cross depends only on the northward component. A 60 m wide river crossed at 4 m/s north takes 15 seconds no matter how fast the current runs, because the current moves the boat downstream rather than across. That independence of perpendicular components is the same rule as the component method, read as a motion problem.

Three dimensions extend the method with one more component. A vector from the origin to the point (2, 3, 6) has magnitude 7, since 4 + 9 + 36 = 49 and the square root of 49 is 7. Direction then needs two angles rather than one, and most software reports the components instead because they are unambiguous.

Mistakes that survive a sanity check

Four errors produce answers that look reasonable and are wrong.

Adding magnitudes is the first. Two 10 unit vectors at 90 degrees add to 14.142, not 20, and two 10 unit vectors pointing opposite ways add to 0. The magnitude of a sum is bounded by the sum of the magnitudes and by their difference, so any result outside that range is a sign error.

Dropping the sign of a component is the second. The cosine of an angle between 90 and 270 degrees is negative, and a layout that treats every x component as positive puts the resultant in the first quadrant when it belongs in the third. The magnitude stays right and the direction is off by up to 180 degrees, which is exactly the kind of error that passes a quick look.

Mixing degrees and radians is the third. A spreadsheet given 120 in a radians cell returns a cosine of 0.8142 rather than -0.5000, and every downstream number follows it.

Swapping the component order is the fourth, and it is a units problem more than a maths one. Physics courses often write (north, east) while maths courses write (x, y), so a vector copied between the two conventions comes out reflected across the diagonal. Write the axes down before typing the numbers.

Frequently asked questions

How do I add two vectors?

Split each into x and y components, add the x parts, add the y parts, then take the magnitude as the square root of the summed squares. Adding 10 at 30 degrees to 8 at 120 degrees gives 12.806 at 68.66 degrees.

Why is the sum of 3 east and 4 north equal to 5?

Because the two are perpendicular, so the resultant is the hypotenuse of a right triangle. The square root of 9 + 16 is 5, and the direction is 53.13 degrees north of east.

Can the magnitude of a sum be larger than the sum of the magnitudes?

No. The triangle inequality caps it at the sum of the magnitudes, and the magnitude of the sum can be no smaller than the difference between them.

Why does my inverse tangent give a negative angle?

Inverse tangent covers only -90 to 90 degrees. If the x component is negative, add 180 degrees, and if only the y component is negative, add 360 degrees.

What is the angle between 30 and 120 degrees?

90 degrees, which makes the two vectors perpendicular. Their dot product is zero, and the sum and the difference then have equal magnitudes of 12.806 units.

How do I add vectors in three dimensions?

Add the z components along with x and y, then take the square root of all three squares. The point (2, 3, 6) sits 7 units from the origin, since 4 + 9 + 36 = 49.

What does a zero resultant mean?

The vectors balance and there is no net direction. Three equal vectors at 0, 120 and 240 degrees sum to zero, which is why three ropes at those angles hold a load with no sideways pull.

Does the order of addition matter?

No. Vector addition is commutative and associative, so A plus B equals B plus A, and three vectors can be grouped in any order.

How do I find the direction of the resultant?

Divide the y component by the x component and take the inverse tangent, then correct the quadrant. For components of 4.660 and 11.928 the angle is 68.66 degrees, in the first quadrant.

What is the difference between a vector and a scalar?

A vector has magnitude and direction, a scalar has magnitude only. Speed is a scalar and velocity is a vector, so a boat at 4 m/s north on a 3 m/s current moves at 5 m/s over the ground.

How long does it take to cross a river with a current?

Only the component across the river matters. A 60 m wide river crossed at 4 m/s takes 15 seconds, and a faster current moves the boat downstream without changing the crossing time.

Why do the sum and difference have the same length in my example?

Because the vectors are perpendicular. The parallelogram is then a rectangle, and the diagonals of a rectangle are equal. Tilt one vector and the sum becomes longer than the difference.

What is a unit vector?

A vector of length 1 in the same direction, found by dividing each component by the magnitude. The vector (3, 4) has magnitude 5, so its unit vector is (0.6, 0.8).

Can I add vectors given only as bearings?

Convert the bearing to an angle from the positive x axis first. A bearing of 050 degrees is 40 degrees from the x axis, since bearings are measured clockwise from north while the component formulas use the counterclockwise angle from east.

Spotted a wrong number or a broken result?

More Math tools

See all Math tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.