Linear Algebra & Matrices

Dot Product Calculator

Calculate the exact scalar product of two equal-dimensional vectors.

Linear Algebra & Matrices

Enter vector components

Exact rational arithmetic
Vector a
Vector b

Use ordinary signed decimals. Fractions, commas, and scientific notation are not accepted in this first batch.

Exact result

Enter valid values to see the result.

Your entries are calculated in this browser and are not submitted to 365CALCS.COM.

Quick guide

How to use this calculator

  1. Give a and b the same dimension.
  2. Enter their components in matching order.
  3. Read the exact sum of component products.

Calculation method

Multiply matching components, then add

For a and b with n components, a · b = a₁b₁ + … + aₙbₙ. The result is a scalar.

Worked example

Dot product in three dimensions

For a = ⟨1,2,3⟩ and b = ⟨4,−1,2⟩, add the three component products.

a · b = 1×4 + 2×(−1) + 3×2 = 8

Supported inputs

Precision and limits

Vector size

General vectors may contain 2–8 components; three-dimensional products require exactly three.

Entry precision

Each signed decimal may contain up to 30 digits and 15 decimal places.

Square roots

Squared magnitudes remain exact. Irrational roots and normalized components are explicitly labelled approximations.