HomeVector Calculator

Vector Calculator

Online vector calculator supporting 2D/3D add/subtract, dot/cross product, angle, and projection for study, modeling, and engineering analysis

Dimension and Inputs

Vector Dimension

Vector A

|A| = 1.0000

Vector B

|B| = 0.0000


Vector Operation Results

A + B

(1.00, 0.00)

A - B

(1.00, 0.00)

Dot Product A·B

0.0000


Angle and Projection

Vector Angle

Degree (°)N/A

Radian (rad)N/A

Vector Projection

Projection of A on BN/A

Projection of B on A0.0000 × (1.00, 0.00)



Documentation

Overview

Vector Calculator helps you quickly run 2D/3D vector operations, including add/subtract, dot product, cross product, angle, and projection, with real-time updates.

Key Features

  • Switch between 2D and 3D calculation modes.
  • Enter components for Vector A and Vector B with instant updates.
  • Get vector magnitude, vector sum, vector difference, and dot product.
  • Compute cross product in 3D mode.
  • View angle results in both degrees and radians.
  • Check projection of A on B and projection of B on A.

How to Use

  1. Choose the dimension mode, 2D or 3D.
  2. Enter component values for Vector A and Vector B.
  3. Review sum, difference, dot product, and cross product in the result area.
  4. Check angle and projection in the analysis area.
  5. Use the copy button when you need to share the output.

Operation Notes

  • Vector addition: add each corresponding component.
  • Vector subtraction: subtract each corresponding component.
  • Dot product: sum of pairwise component multiplication, result is scalar.
  • Cross product: 3D only, result is perpendicular to both vectors.
  • Vector angle: derived from dot product and magnitudes.
  • Vector projection: component of one vector along another vector.

Use Cases

  • Linear algebra practice and homework checking.
  • Physics vector analysis for force, velocity, and displacement.
  • Graphics development for direction and spatial calculations.
  • Engineering modeling for vector decomposition and projection.

Notes

  • If one vector magnitude is 0, angle and some projection outputs are unavailable.
  • In 2D mode, calculation uses x and y components, while z is ignored.
  • All calculations run locally in the browser.