Vector Calculator

Calculate the properties of a vector (magnitude, direction, polar form, unit vector) from its components, endpoints, or magnitude and angle, with a step-by-step solution and graph.

Vector components
,

Quick Examples

Rate this tool

How to Use the Calculator

This online vector solver is ideal for solving linear algebra, analytic geometry, or physics problems. The system allows you to thoroughly analyze a single vector quantity, or it redirects you to specific tools if you need to perform operations with multiple vectors.

Use the main menu to choose the type of action you want to perform:

1. Single vector analysis

If you need to break down and study an individual vector, select whether you are working on the plane (2D / R2) or in space (3D / R3). Depending on the dimension, the calculator will offer you different ways to input your data:

  • By its components: directly enter the coordinate values (x, y) for 2D, or (x, y, z) for 3D.
  • By its endpoints: provide the coordinates of the initial point (origin) and the terminal point. Available in both 2D and 3D.
  • By its magnitude and angle: if you have a vector expressed in polar form, enter its total magnitude and the angle of inclination relative to the positive x-axis.

Once the data is entered, the solver will generate a structured response in three blocks:

Comprehensive report block
The system will process the information and provide a detailed technical sheet that includes: the vector expressed in rectangular component form, standard unit vector notation (i, j, k), polar form (for 2D), magnitude (length), direction (angles relative to the axes), and the calculation of the unit vector pointing in the same direction.

Step-by-step solution block
If you inputted the vector by its endpoints or magnitude and direction, the solver will provide the step-by-step process to calculate the rectangular components. You will be able to see how the coordinates are subtracted (terminal point minus initial point) or how the sine and cosine trigonometric functions are applied to find the rectangular components from the polar form.

Graph block
If your analysis is performed in R2, an interactive Cartesian plane will be drawn at the bottom showing the vector positioned from the origin, allowing you to visually verify its magnitude, direction, and the quadrant to which it belongs.

Note: all input fields in this tool support integers, decimals, and the use of exact fractions and roots to avoid rounding errors during the analytical calculation.

2. Operations with two or more vectors

If your problem involves interactions between several vectors, select the "Vector operations" mode. Doing so will display a menu with a set of individual calculators. From there, you can choose what you want to calculate:

Additionally, you have these tools available:

Solved Exercises

The following are examples of problems solved by the calculator.

Find the components of a vector with magnitude |a| = 4 and angle θ = 60°.

Results

Vector in component form:

$$ \displaystyle \vec{a} = \left\langle 2, 2 \sqrt{3} \right\rangle \approx \langle 2, 3.46 \rangle $$

Unit vector notation:

$$ \displaystyle \vec{a} = 2\hat{i} + 2 \sqrt{3}\hat{j} \approx 2\hat{i} + 3.46\hat{j} $$

Polar form:

$$ \displaystyle \vec{a} = \left(4, 60^{\circ}\right) $$

Magnitude:

$$ \displaystyle |\vec{a}| = 4 $$

Direction:

$$ \displaystyle \theta = 60^{\circ} $$

Unit vector:

$$ \displaystyle \hat{a} = \left\langle \frac{1}{2}, \frac{\sqrt{3}}{2} \right\rangle \approx \langle 0.5, 0.87 \rangle $$

Step-by-step solution

Calculate components from magnitude and direction.

We use trigonometric functions to resolve the vector into its rectangular components:

The horizontal component (x-axis) is found by multiplying the magnitude by the cosine of the angle:

$$ \displaystyle a_x = |\vec{a}| \cos(\theta) = 4 \cos(60^{\circ}) = 2 $$

The vertical component (y-axis) is found by multiplying the magnitude by the sine of the angle:

$$ \displaystyle a_y = |\vec{a}| \sin(\theta) = 4 \sin(60^{\circ}) = 2 \sqrt{3} $$

Therefore, the vector in component form is:

$$ \displaystyle \vec{a} = \left\langle 2, 2 \sqrt{3} \right\rangle \approx \langle 2, 3.46 \rangle $$
Graph of a vector on the Cartesian plane in the first quadrant. Example 1.
Graph of the vector on the plane
Calculate the components and properties of the vector with endpoints (-1, 3) and (2, -4).

Results

Vector in component form:

$$ \displaystyle \vec{a} = \langle 3, -7 \rangle $$

Unit vector notation:

$$ \displaystyle \vec{a} = 3\hat{i} - 7\hat{j} $$

Polar form:

$$ \displaystyle \vec{a} = \left(\sqrt{58}, 293.2^{\circ}\right) \approx \left(7.62, 293.2^{\circ}\right) $$

Magnitude:

$$ \displaystyle |\vec{a}| = \sqrt{58} \approx 7.62 $$

Direction:

$$ \displaystyle \theta \approx 293.2^{\circ} $$

Unit vector:

$$ \displaystyle \hat{a} = \left\langle \frac{3}{\sqrt{58}}, -\frac{7}{\sqrt{58}} \right\rangle \approx \langle 0.39, -0.92 \rangle $$

Step-by-step solution

Calculate the components of the vector.

We extract the coordinates of the initial and terminal points:

$$ \displaystyle A(-1, 3) \quad \rightarrow \quad x_i = -1, \; y_i = 3 \\ B(2, -4) \quad \rightarrow \quad x_f = 2, \; y_f = -4 $$

We find the vector components by subtracting the initial point coordinates from the terminal point coordinates:

$$ \displaystyle a_x = x_f - x_i = 2 - (-1) = 3 \\[1em] a_y = y_f - y_i = -4 - 3 = -7 $$

Therefore, the vector in component form is:

$$ \displaystyle \vec{a} = \langle 3, -7 \rangle $$
Graph of a vector on the Cartesian plane in the fourth quadrant. Example 2.
Graph of the vector on the plane
Analyze the vector with magnitude 15/2 and direction 45°.

Results

Vector in component form:

$$ \displaystyle \vec{a} = \left\langle \frac{15}{2 \sqrt{2}}, \frac{15}{2 \sqrt{2}} \right\rangle \approx \langle 5.3, 5.3 \rangle $$

Unit vector notation:

$$ \displaystyle \vec{a} = \frac{15}{2 \sqrt{2}}\hat{i} + \frac{15}{2 \sqrt{2}}\hat{j} \approx 5.3\hat{i} + 5.3\hat{j} $$

Polar form:

$$ \displaystyle \vec{a} = \left(\frac{15}{2}, 45^{\circ}\right) = \left(7.5, 45^{\circ}\right) $$

Magnitude:

$$ \displaystyle |\vec{a}| = \frac{15}{2} = 7.5 $$

Direction:

$$ \displaystyle \theta = 45^{\circ} $$

Unit vector:

$$ \displaystyle \hat{a} = \left\langle \frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}} \right\rangle \approx \langle 0.71, 0.71 \rangle $$

Step-by-step solution

Calculate components from magnitude and direction.

We use trigonometric functions to resolve the vector into its rectangular components:

The horizontal component (x-axis) is found by multiplying the magnitude by the cosine of the angle:

$$ \displaystyle a_x = |\vec{a}| \cos(\theta) = \frac{15}{2} \cos(45^{\circ}) = \frac{15}{2 \sqrt{2}} $$

The vertical component (y-axis) is found by multiplying the magnitude by the sine of the angle:

$$ \displaystyle a_y = |\vec{a}| \sin(\theta) = \frac{15}{2} \sin(45^{\circ}) = \frac{15}{2 \sqrt{2}} $$

Therefore, the vector in component form is:

$$ \displaystyle \vec{a} = \left\langle \frac{15}{2 \sqrt{2}}, \frac{15}{2 \sqrt{2}} \right\rangle \approx \langle 5.3, 5.3 \rangle $$
Graph of a vector on the Cartesian plane in the first quadrant. Example 3.
Graph of the vector on the plane
Find the components of the vector in R3 with initial point at (-10, -5, 2) and terminal point at (-8, -4, 5).

Results

Vector in component form:

$$ \displaystyle \vec{a} = \langle 2, 1, 3 \rangle $$

Unit vector notation:

$$ \displaystyle \vec{a} = 2\hat{i} + \hat{j} + 3\hat{k} $$

Magnitude:

$$ \displaystyle |\vec{a}| = \sqrt{14} \approx 3.74 $$

Direction:

$$ \displaystyle \alpha \approx 57.69^{\circ}, \; \beta \approx 74.5^{\circ}, \; \gamma \approx 36.7^{\circ} $$

Unit vector:

$$ \displaystyle \hat{a} = \left\langle \frac{2}{\sqrt{14}}, \frac{1}{\sqrt{14}}, \frac{3}{\sqrt{14}} \right\rangle \approx \langle 0.53, 0.27, 0.8 \rangle $$

Step-by-step solution

Calculate the components of the vector.

We extract the coordinates of the initial and terminal points:

$$ \displaystyle A(-10, -5, 2) \quad \rightarrow \quad x_i = -10, \; y_i = -5, \; z_i = 2 \\ B(-8, -4, 5) \quad \rightarrow \quad x_f = -8, \; y_f = -4, \; z_f = 5 $$

We find the vector components by subtracting the initial point coordinates from the terminal point coordinates:

$$ \displaystyle a_x = x_f - x_i = -8 - (-10) = 2 \\[1em] a_y = y_f - y_i = -4 - (-5) = 1 \\[1em] a_z = z_f - z_i = 5 - 2 = 3 $$

Therefore, the vector in component form is:

$$ \displaystyle \vec{a} = \langle 2, 1, 3 \rangle $$

Related Tools

Daniel Machado

Professor of Mathematics, graduated from the Faculty of Exact, Chemical and Natural Sciences of the National University of Misiones (UNAM). Developer and creator of RigelUp, dedicated to building tools for mathematical learning.