AmesWeb

Vector Calculator

Calculate vector magnitude, vector angle, vector direction, and vector components for 2D and 3D vectors. This free vector calculator converts between component form and magnitude with angle.

Vector Magnitude, Angle, Direction and Components Calculator

Use this page as a vector magnitude calculator, vector angle calculator, vector direction calculator, vector component calculator, component form calculator, or 3D vector calculator.

Calculator Inputs


Vector Components


Magnitude and Direction Angle(s)

Use “.” as the decimal separator.

Results

|A| = √(Ax² + Ay²)
x component
y component
z component
Magnitude |A|
Direction angle θx / θ
Direction angle θy
Direction angle θz
What this means

Enter values and click Calculate to convert between vector components and magnitude with direction angles.

2D Vector Diagram

For 2D vectors, the calculator also draws the vector from the origin and shows its x and y components.

x y 0 A Ax Ay

Vector Formulas

2D magnitude: |A| = √(Ax² + Ay²)
3D magnitude: |A| = √(Ax² + Ay² + Az²)
2D direction angle: θ = atan2(Ay, Ax)
3D direction angles: θx = cos⁻¹(Ax/|A|), θy = cos⁻¹(Ay/|A|), θz = cos⁻¹(Az/|A|)

How to Use the Vector Calculator

  1. Select Vector Components if you know x, y, and optionally z.
  2. Select Magnitude and Angle if you know the vector size and direction.
  3. Choose 2D or 3D mode.
  4. Enter the known values.
  5. Click Calculate to get magnitude, angle, direction, and component form.

Examples

Case Input Use case
2D vector A = <5, -6> Find magnitude and angle of a vector
3D vector A = <3, 4, 12> Use as a 3D vector calculator
2D magnitude-angle |A| = 10, θ = 30° Find x and y components of a vector
3D magnitude-angle |A| = 15, θx = 60°, θy = 45°, θz = 60° Convert direction angles to component form

About This Vector Calculator

This tool calculates vector magnitude, direction angle, and vector components for both 2D and 3D vectors. It can also convert between component form and magnitude-angle form, making it useful for common vector calculations in physics, mathematics, and engineering.

FAQ

How do you calculate the magnitude of a vector?

For a 2D vector, use √(x² + y²). For a 3D vector, use √(x² + y² + z²).

How do you find the direction angle of a vector?

In 2D, use atan2(y, x). In 3D, direction angles come from the direction cosines.

Can this calculator find vector components from magnitude and angle?

Yes. In 2D, it returns x and y components. In 3D, it returns x, y, and z components.

Is this also a component form calculator?

Yes. It converts between component form and magnitude-angle form for 2D and 3D vectors.

Related Calculators

References

  • Giancoli, Douglas C. Physics: Principles with Applications. Pearson.
  • Halliday, Resnick, Walker. Fundamentals of Physics.
  • OpenStax. University Physics. Vector fundamentals and component methods.