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.
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