# Vector addition > How long is the sum of two vectors? Add two vectors tip to tail: the resultant's length and direction, the angle between them and the dot and cross products, drawn live. Add two 2D vectors by magnitude and angle or by components. See the resultant tip to tail and as a parallelogram, with the dot and cross products. - Page: https://how.box/vector-addition/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/vector-addition/?m={m}&am={am}&aa={aa}&bm={bm}&ba={ba}&ax={ax}&ay={ay}&bx={bx}&by={by} - `m` (polar or components): polar or components. Example: `polar`. - `am` (number 0 to 1e6): Length of A (m=polar). Example: `4`. - `aa` (number -360 to 360): Direction of A (m=polar). Example: `30`. - `bm` (number 0 to 1e6): Length of B (m=polar). Example: `3`. - `ba` (number -360 to 360): Direction of B (m=polar). Example: `120`. - `ax` (number -1e6 to 1e6): x component of A (m=components). Example: `4`. - `ay` (number -1e6 to 1e6): y component of A (m=components). Example: `1`. - `bx` (number -1e6 to 1e6): x component of B (m=components). Example: `1`. - `by` (number -1e6 to 1e6): y component of B (m=components). Example: `3`. Example answer: https://how.box/vector-addition/?m=polar&am=4&aa=30&bm=3&ba=120&ax=4&ay=1&bx=1&by=3 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `vector_addition_add`: Adds two 2D vectors A and B. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"vector_addition_add","arguments":{"mode":"polar","a_magnitude":4,"a_angle":30,"b_magnitude":3,"b_angle":120,"a_x":4,"a_y":1,"b_x":1,"b_y":3}}}` - GET: https://how.box/mcp/run/vector_addition_add?mode=polar&a_magnitude=4&a_angle=30&b_magnitude=3&b_angle=120&a_x=4&a_y=1&b_x=1&b_y=3 ## How it works A vector has a size and a direction, like a force or a walk across a field. To add two vectors, draw the second one starting where the first one ends (tip to tail); the arrow from the start to the final tip is the sum, the resultant R. Drawing both from the same point and completing the parallelogram gives the same R as its diagonal. The easy way to calculate is by components. A vector of length A at angle θ has the components Aₓ = A·cos θ and A_y = A·sin θ, and the resultant is R = (Aₓ + Bₓ, A_y + B_y). Its length is |R| = √(Rₓ² + R_y²) and its direction θ = atan2(R_y, Rₓ). For example, 4 at 30° plus 3 at 120° gives R = (1.964, 4.598): 5 long at 66.87°, because the two vectors are at right angles and 3² + 4² = 5². The dot product A·B = AₓBₓ + A_yB_y = |A||B| cos φ is zero when the vectors are perpendicular, and the cross product's z component AₓB_y − A_yBₓ = |A||B| sin φ is the area of the parallelogram, positive when B turns counter-clockwise from A. Angles are measured counter-clockwise from the positive x-axis. Source: OpenStax University Physics, volume 1, chapter 2. ## FAQ **Does the order of adding vectors matter?** No. A + B and B + A give the same resultant: the two routes round the parallelogram end at the same corner. **How do I subtract a vector?** Add its opposite: A − B is A plus B turned by 180°, or with both components of B made negative. **Why is the resultant shorter than the two lengths added?** Only vectors pointing the same way add up to the sum of their lengths. The more they point apart, the shorter the resultant; opposite vectors of equal length cancel to zero. **What does a negative cross product mean?** B turns clockwise from A. The size of the cross product is the area of the parallelogram the two vectors span either way. **Can I combine vectors measured in different units?** Convert them to the same unit first. The tool treats the numbers as unitless, so it cannot correct a mixture of metres and centimetres or newtons and pounds-force. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)