Loading…

Vector in Coordinate Plane Calculator

Math Geometry • Coordinate Geometry

View all topics

Compute a 2D vector’s components, magnitude, and direction angle (measured counterclockwise from the +x axis). The graph is interactive: drag to pan, wheel/trackpad to zoom, pinch on touch.

Inputs accept 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication.

Inputs
Two points (A → B)
Components
Magnitude + angle

Tip: Direction angle uses \(\theta=\operatorname{atan2}(v_y, v_x)\). It’s reported in \([0^\circ,360^\circ)\).

Graph options

Graph uses square units: 1 unit in \(x\) equals 1 unit in \(y\).

Ready
Choose a mode and click Calculate.
Vector diagram (pan/zoom enabled)

Drag to pan • wheel/trackpad to zoom • pinch on touch • “Reset view” fits the geometry.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

How do you find a vector from two points in the coordinate plane?

For a vector from A(x1, y1) to B(x2, y2), the components are vx = x2 - x1 and vy = y2 - y1. This gives the displacement needed to move from A to B.

What is the magnitude of a 2D vector and how is it calculated?

The magnitude is the length of the vector and is computed by r = sqrt(vx^2 + vy^2). This is the Pythagorean theorem applied to the component triangle.

How is the direction angle of a vector computed?

The direction angle is computed using theta = atan2(vy, vx), which correctly accounts for the quadrant. It is measured counterclockwise from the positive x-axis and can be reported in degrees or radians.

Why use atan2(vy, vx) instead of arctan(vy/vx)?

arctan(vy/vx) can lose quadrant information and fails when vx = 0. atan2(vy, vx) handles vertical directions and returns the correct angle for all quadrants.

What happens for the zero vector (0, 0)?

The zero vector has magnitude 0, so it has no meaningful direction angle. A calculator may still display an angle value, but direction is undefined when the magnitude is zero.