Dot Product Calculator
Free online Dot Product Calculator. Compute the vector dot product (a · b), Euclidean norms, angle theta (degrees and radians), and vector projections in 2D, 3D, and N-D space.
Vector Dot Product Calculator
Vectors: a = ⟨3, 5, 8⟩, b = ⟨2, 7, 1⟩
47.66°
0.8318 rad0.6736
(a · b) / (||a|| × ||b||)9.8995
√987.3485
√54Component-wise Dot Product Breakdowna · b = ∑ ai × bi
| Component | ai | bi | Product (ai × bi) | Running Sum |
|---|---|---|---|---|
| x | 3 | 2 | 6 | 6 |
| y | 5 | 7 | 35 | 41 |
| z | 8 | 1 | 8 | 49 |
| Total Dot Product (a · b): | 49 | |||
Vector & Scalar Projections
Unit Vectors & Vector Operators
📝 Mathematical Step-by-Step Derivation
Multiply corresponding coordinates of both vectors and sum the products to obtain the scalar product.
The length or Euclidean norm of each vector is the square root of the sum of squares of its components.
Acute Angle: The vectors point generally in the same half-space (θ = 47.66° < 90°).
The vector projection represents the shadow or component vector of a that lies directly along the direction of b.
How to Use the Vector Dot Product Calculator
Step-by-step instructions for computing scalar products, angles, and projections
Select Dimension Mode
Choose 3D Space 〈x, y, z〉, 2D Plane 〈x, y〉, N-Dimensional, or Multi-Vector (3+ vectors) mode.
Input Vector Coordinates
Type the components into the coordinate boxes or enter bracketed numbers (e.g. [3, 5, 8] or 〈2, 7, 1〉).
Review Angle & Orthogonality
Observe the scalar dot product, the geometric angle θ in both degrees and radians, and the relationship badge (Orthogonal, Parallel, Acute, or Obtuse).
Inspect Projections & 3D Cross Product
Examine scalar and vector projections (projba), unit vectors, the running sum breakdown table, and 3D cross product vector.
Mathematical Principles of the Dot Product
Algebraic component summation, Law of Cosines proof, and vector projections
1. Algebraic Component Definition
For any two vectors in n-dimensional Euclidean space, a = 〈a&sub1;, a&sub2;, …, an〉 and b = 〈b&sub1;, b&sub2;, …, bn〉, the dot product is defined as the sum of coordinate products:
Notice that although vectors a and b have direction and magnitude, their dot product a · b is a single real scalar quantity (which is why it is often called the scalar product).
2. Geometric Equivalence & Law of Cosines Proof
Consider a triangle formed by vectors a, b, and their difference vector c = a - b. By the classical Law of Cosines from trigonometry:
Expanding the left side using vector components:
Equating both expressions directly yields:
3. Orthogonality, Angle Tests, & Projections
Benchmark Vector Dot Product Calculations
Geometric, physical, and computer science reference benchmarks
| Scenario | Vector a | Vector b | Dot Product (a · b) | Angle (θ) | Classification |
|---|---|---|---|---|---|
| Orthogonal Basis Vectors (i · j) | ⟨1, 0, 0⟩ | ⟨0, 1, 0⟩ | 0 | 90.00° (π/2 rad) | Perpendicular / Orthogonal |
| Parallel Unit Vectors (i · i) | ⟨1, 0, 0⟩ | ⟨1, 0, 0⟩ | 1 | 0.00° (0 rad) | Parallel (Same Direction) |
| CalculatorSoup Standard Problem | ⟨3, 5, 8⟩ | ⟨2, 7, 1⟩ | 49 | 47.66° (0.832 rad) | Acute Angle |
| Opposite / Antiparallel Vectors | ⟨3, -4, 5⟩ | ⟨-6, 8, -10⟩ | -100 | 180.00° (π rad) | Antiparallel (Opposite) |
| Mechanical Work (F · d) | ⟨50, 0, 20⟩ N | ⟨10, 4, 0⟩ m | 500 J | 21.80° (0.380 rad) | Positive Work Done |
| Computer Graphics Diffuse Shading | ⟨0, 1, 0⟩ (Normal) | ⟨0.5, 0.866, 0⟩ (Light) | 0.866 | 30.00° (π/6 rad) | 86.6% Surface Brightness |
| 2D Diagonal Square Angle | ⟨1, 1⟩ | ⟨1, 0⟩ | 1 | 45.00° (π/4 rad) | Diagonal Split |
| 4D Relativistic Spacetime Vectors | ⟨3, 0, 0, 4⟩ | ⟨1, 2, 2, 1⟩ | 7 | 62.06° (1.083 rad) | 4D Acute Inner Product |
Worked Vector Problems
Step-by-step solutions for 3D dot products, angles, work, and projections
Given a = 〈3, 5, 8〉 and b = 〈2, 7, 1〉, calculate the scalar product:
Since the result 49 > 0, the angle between the vectors is acute.
Find the angle θ between a = 〈3, 5, 8〉 and b = 〈2, 7, 1〉:
A constant force F = 〈50, 0, 20〉 N displaces a crate by d = 〈10, 4, 0〉 m. How much work is done?
The y and z components of force do zero work because displacement along those axes is orthogonal.
Calculate projba for a = 〈3, 5, 8〉 and b = 〈2, 7, 1〉:
The scalar projection is compba = 49 / √54 ≈ 6.6680.
Frequently Asked Questions
Expert answers to questions about vector dot products, projections, and linear algebra
What is the dot product of two vectors?▼
The dot product (also called the scalar product) is an algebraic operation that takes two equal-length coordinate vectors and returns a single scalar number. It is computed by multiplying matching components together and summing the results: a · b = a₁b₁ + a₂b₂ + ... + aₙbₙ.
What does a dot product of zero mean?▼
If the dot product of two non-zero vectors is zero (a · b = 0), the vectors are orthogonal, which means they are perpendicular to each other at an exact 90-degree right angle (cos 90° = 0).
How do you calculate the angle between two vectors using the dot product?▼
The angle θ between vectors a and b is given by the geometric formula: cos(θ) = (a · b) / (||a|| ||b||). Taking the inverse cosine yields θ = arccos((a · b) / (||a|| ||b||)), where ||a|| and ||b|| are the Euclidean magnitudes (norms) of the vectors.
Can the dot product be negative?▼
Yes. Since a · b = ||a|| ||b|| cos(θ), the sign of the dot product depends solely on cos(θ). If the angle between vectors is acute (0° ≤ θ < 90°), the dot product is positive. If the angle is obtuse (90° < θ ≤ 180°), cos(θ) is negative, resulting in a negative dot product. When θ = 180° (antiparallel), the dot product attains its maximum negative value: -||a|| ||b||.
What is the difference between a scalar projection and a vector projection?▼
The scalar projection of a onto b (comp_b a = (a · b) / ||b||) is a single number representing the signed length of the shadow that vector a casts onto vector b. The vector projection (proj_b a = ((a · b) / ||b||²) b) is an actual vector pointing in the direction of b with magnitude equal to |comp_b a|.
What are the main physics applications of the dot product?▼
The dot product is central to physics and engineering: 1. Mechanical Work: W = F · d (force dotted with displacement); 2. Electric and Magnetic Flux: Φ = E · A; 3. Instantaneous Mechanical Power: P = F · v; 4. Computer Graphics & Shading: Lambertian lighting models use the dot product between the surface normal N and light vector L to compute brightness.
Related Calculators
Quick SuggestionsDisplacement as a Function of Velocity, Acceleration and Time
Free online Displacement as a Function of Velocity, Acceleration and Time Calculator. Solve s = ut + 1/2at² for displacement, initial velocity, acceleration, or time with conversions.
Displacement as a Function of Velocity and Time
Free online Displacement as a Function of Velocity and Time Calculator. Solve s = 1/2(u + v)t for displacement, initial/final velocity, or duration with unit conversions.
Average Velocity Calculator
Free online Average Velocity Calculator. Solve for average velocity, displacement, or time using kinematics formulas (v = Δx/Δt and v = (u+v)/2) with unit conversions.
Density Calculator (Physics)
Free online Density Calculator (Physics). Solve for density (ρ = m/V), mass (m = ρ×V), or volume (V = m/ρ) with material presets, specific gravity, and buoyancy analysis.
Molecular Weight Calculator (Molar Mass & Formula Weight)
Free online Molecular Weight Calculator. Calculate molar mass (g/mol), formula weight, percent composition by mass, and mole-to-gram conversions for any chemical formula.
Momentum Calculator (p = mv)
Free online Momentum Calculator. Solve for momentum (p = mv), velocity (v), or mass (m). Features kinetic energy, stopping force, impulse, and unit conversions in SI and Imperial.