Last verified · v1.0
Calculator · math
Vector Addition Calculator (2 D)
Add two 2D vectors to find the resultant's x-component, y-component, magnitude, and direction angle using component-wise vector addition.
Inputs
Resultant Vector Value
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is 2D Vector Addition?
Vector addition in two dimensions is one of the most foundational operations in mathematics, physics, and engineering. When two vectors A and B act simultaneously — whether they represent forces on a bridge, velocities of a boat against a current, or displacements in a navigation problem — their combined effect equals a single resultant vector R. This vector addition calculator computes that resultant by combining horizontal (x) and vertical (y) components of both input vectors and returning the resultant's components, magnitude, and direction angle.
The Core Vector Addition Formulas
According to HyperPhysics at Georgia State University, adding two 2D vectors is performed component-by-component. Given vector A = (A_x, A_y) and vector B = (B_x, B_y), the resultant R is computed in three steps:
- Resultant components: R_x = A_x + B_x and R_y = A_y + B_y
- Magnitude: |R| = sqrt((A_x + B_x)^2 + (A_y + B_y)^2)
- Direction angle: theta = arctan((A_y + B_y) / (A_x + B_x))
The magnitude formula applies the Pythagorean theorem to the resultant's two components, treating them as legs of a right triangle. The arctan (inverse tangent) function then returns the angle that R makes with the positive x-axis, measured counterclockwise.
Variable Definitions
- A_x (vector1_x): The horizontal component of vector A. Positive values point right (east); negative values point left (west).
- A_y (vector1_y): The vertical component of vector A. Positive values point up (north); negative values point down (south).
- B_x (vector2_x): The horizontal component of vector B, following the same sign convention as A_x.
- B_y (vector2_y): The vertical component of vector B, following the same sign convention as A_y.
- |R| (magnitude): The scalar length of the resultant vector, always non-negative, expressed in the same units as the input components.
- theta (direction): The angle of the resultant measured counterclockwise from the positive x-axis. Common reference: 0° = east, 90° = north, 180° = west, 270° = south.
Worked Example
A boat travels with velocity vector A = (3, 4) m/s — 3 m/s eastward and 4 m/s northward. A river current applies an additional velocity B = (1, −2) m/s — 1 m/s east and 2 m/s south. The actual resultant velocity is:
- R_x = 3 + 1 = 4 m/s
- R_y = 4 + (−2) = 2 m/s
- |R| = sqrt(4^2 + 2^2) = sqrt(16 + 4) = sqrt(20) ≈ 4.47 m/s
- theta = arctan(2 / 4) = arctan(0.5) ≈ 26.57°
The boat moves at approximately 4.47 m/s at 26.57° north of east — a result impossible to obtain by simply adding the speed values (3 + 1 = 4 would be wrong).
Quadrant Awareness and the atan2 Function
The standard arctan function only returns angles between −90° and +90°, which creates ambiguity when the resultant lies in the second or third quadrant. Most software implementations — including this calculator — use the two-argument atan2(R_y, R_x) function, which returns a full-range angle from −180° to +180° and correctly identifies the quadrant from the signs of both components. Always verify that the computed angle matches the expected direction based on the signs of R_x and R_y.
Real-World Applications
- Structural engineering: Summing horizontal and vertical load components on a cable or beam to find total tension and its angle of action.
- Navigation: Combining an aircraft's airspeed vector with wind velocity to determine actual ground speed and course correction.
- Classical physics: Resolving concurrent forces on a stationary object to verify equilibrium (net force = zero) in statics problems.
- Computer graphics: Adding player movement vectors to environmental effect vectors (gravity, wind) each frame to update 2D game character positions.
- Surveying: Combining measured displacement vectors across legs of a traverse to compute total horizontal distance and bearing.
For interactive exploration, the PhET Vector Addition Simulation (University of Colorado Boulder) lets users drag and drop vectors visually. For a formal derivation within introductory physics, see UMass Open Physics 131: Introduction to Vectors and Vector Addition.
Reference