Compute dot product, cross product, magnitude, unit vectors, and angle between vectors — with step-by-step formulas.
Vectors are fundamental mathematical objects that represent both magnitude and direction. They appear everywhere — physics uses them for forces and velocities, computer graphics uses them for transformations and lighting, engineering uses them for structural analysis, and machine learning uses them for high-dimensional data representation. Operations on vectors like dot products, cross products, and angle computations are daily tools in these fields.
Computing vector operations by hand is manageable for 2D vectors but becomes increasingly error-prone in 3D and beyond. A cross product alone involves 6 terms with alternating signs. Normalizing a vector requires computing a square root of a sum of squares. Our free vector calculator handles dot products, cross products, magnitudes, unit vectors, and angles between vectors in 2D, 3D, and 4D, showing the complete formula and all intermediate values.
Enter the components of your vector(s) and select the dimension — 2D, 3D, or 4D. Choose the operation you want to perform from the available options: dot product, cross product, magnitude, unit vector, or angle. The calculator displays the formula being used, plugs in your values, shows all intermediate computations, and gives the final result.
This step-by-step approach means you can verify each part of the calculation independently, making it a powerful learning tool in addition to a computation tool.
Input: a = [1, 2, 3], b = [4, 5, 6]
Operation: Dot product
Output: a · b = (1)(4) + (2)(5) + (3)(6) = 4 + 10 + 18 = 32
The calculator supports 2D, 3D, and 4D vectors. You can compute dot products, magnitudes, unit vectors, and angles in all dimensions. Cross products are available for 3D vectors specifically, as the cross product is defined only in three dimensions.
The dot product produces a scalar (single number) that measures how aligned two vectors are — it equals ||a||·||b||·cos(θ). The cross product produces a vector perpendicular to both inputs with magnitude ||a||·||b||·sin(θ). Dot products work in any dimension; cross products are specific to 3D.
The calculator uses the formula θ = arccos(a·b / (||a|| · ||b||)), which derives from the geometric definition of the dot product. It computes the dot product, both magnitudes, divides, and takes the inverse cosine to give the angle in degrees.
A unit vector has magnitude 1 and points in the same direction as the original vector. It's computed by dividing each component by the vector's magnitude. Unit vectors are used when you need direction without magnitude — for surface normals, basis vectors, or directional derivatives.
Yes. The cross product as traditionally defined (producing a vector perpendicular to both inputs) only works in three dimensions. In 2D, you can compute a scalar "cross product" (the z-component of the 3D cross product with z=0), but the full vector cross product requires 3D.
Yes, it is completely free with no usage limits. Compute as many vector operations as you need for physics, engineering, graphics, or math coursework.
Let ChatGPT, Claude, or Perplexity do the thinking for you. Click a button and see what your favorite AI says about Formula Bot.
Compute symbolic derivatives instantly with step-by-step rules and an interactive graph of f(x) and f'(x).
Convert between units of length, weight, temperature, volume, speed, time, and area instantly.
Add, subtract, multiply, and divide fractions instantly with step-by-step simplification to lowest terms.
Compute mean, median, mode, standard deviation, variance, quartiles, and a full five-number summary from any dataset.
Calculate compound interest with year-by-year breakdowns, future value, and effective annual rate.
Compute combinations (nCr), permutations (nPr), and factorials (n!) instantly with step-by-step formula expansions.
Perform complex number arithmetic, find conjugates, magnitude, and polar form with step-by-step solutions.
Compute indefinite and definite integrals instantly with AI-powered step-by-step solutions.
Convert numbers between binary, octal, decimal, and hexadecimal instantly with all representations shown at once.
Evaluate limits of functions instantly with a table of approaching values from left, right, or both sides.
Calculate percentages three ways: find X% of Y, what percent X is of Y, or percentage change.
Compute the line of best fit (y = mx + b), R-squared, correlation coefficient, predictions, and residuals from any dataset.
Find real and complex roots of quadratic, cubic, and quartic polynomials with step-by-step solutions.
Compute sigma notation sums instantly with individual terms and partial sums displayed step by step.
Find GCD, LCM, and prime factorizations instantly with step-by-step Euclidean algorithm and trial division.
Simplify algebraic expressions instantly with a breakdown of the rules applied and an expanded form.
Compute determinant, inverse, transpose, multiplication, eigenvalues, and rank — with step-by-step explanations.
Solve linear systems (Ax = b) and quadratic equations (ax^2+bx+c = 0) instantly with step-by-step solutions and verification.
Calculate tips and split bills with ease.
Calculate your grade point average instantly.
Calculate area for any shape and convert between units.
Find square roots with step-by-step solutions.
Find out what you need on your final exam.
Solve quadratic equations step by step.
Find the missing side of a right triangle.
Calculate annuity payments and values.
Calculate dividend yield and income projections.
Solve long division with detailed steps.
Calculate your exact age in years, months, and days.
Find the slope and equation of a line.
Calculate how your investments grow over time.
Calculate sale prices and savings instantly.
Convert and calculate with scientific notation.
Calculate logarithms with any base.
Round numbers to any decimal place.
Calculate markup percentage and profit margins.
Add, subtract, multiply, and divide mixed numbers.
Calculate powers and exponents step by step.
Count and round significant figures.
Find the midpoint between two coordinate points.
Calculate percent error for experiments and data.
Find the GCF and LCM of any numbers.
Convert decimals to fractions in lowest terms.
Sign up for free and unlock unlimited calculations, saved history, and more.
Get Started Free