Math

3D Vector Calculator

Find vector sums, differences, dot and cross products, magnitudes and the angle between two vectors.

Exact method explained belowEditable inputs
Calculation notebook
Calculation notebook

The formula and worked example below explain the calculation.

See the method

Enter your values

Runs on your device

Your answer

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter vector a: x, y, z, vector b: x, y, z.
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
Vector A: x, y, zEnter text using the format shown in the sample.1, 0, 0
Vector B: x, y, zEnter text using the format shown in the sample.0, 1, 0

Result for these sample inputs

0
A + B
1, 1, 0
A − B
1, -1, 0
A × B
0, 0, 1
Magnitude A
1
Magnitude B
1
Angle (degrees)
90

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

Dot product is Σaᵢbᵢ. Cross product uses component determinants. Magnitude is sqrt(Σaᵢ²); the angle is acos(dot/(|a||b|)) for nonzero vectors.

A WORKED EXAMPLE

Using vector a: x, y, z = 1, 0, 0, vector b: x, y, z = 0, 1, 0, the result is 0. Change these example inputs to match your task; use the method above to check each step.

What to keep in mind

Cartesian components in an orthonormal right-handed coordinate system. The main result is the dot product. Finite-precision arithmetic is used. Check the domain and the stated convention before using an approximation.

Common questions

Why is the angle undefined for a zero vector?

A zero vector has no direction. Its dot and cross products still exist, but the angle formula would divide by its zero magnitude.

How can I check the result?

Dot product is Σaᵢbᵢ. Cross product uses component determinants. Magnitude is sqrt(Σaᵢ²); the angle is acos(dot/(|a||b|)) for nonzero vectors. The worked example uses editable inputs. Calculations run on your device; no external API or account is required.

Methodology maintained by ClarityKit. How these tools are built and checked.