Skip to content

Online 3D Vector Calculator

    Use this free 3d vector calculator to find the magnitudes, dot product, cross-product components and angle of two vectors in space. Enter the x, y and z components of each vector to get the results.

    Vectors

    3D Vector Calculator

    Enter two 3D vectors to find their magnitudes, dot product, cross product and the angle between them.

    Your vectors

    Use signed numbers, fractions or scientific notation. Enter all components in the same coordinate system.

    Vector A
    Vector B

    Dot product A · B

    —

    Enter both vectors, then calculate.

    The dot product is the sum of matching component products. For nonzero vectors, a zero dot product means the vectors are perpendicular.

    The cross product A × B is perpendicular to both input vectors and follows the right-hand rule. Swapping A and B reverses its direction.

    Answers are rounded for display; calculations use unrounded values.

    For vector calculations on your phone, Unit Converter is free to download and includes a Vector Calculator (3D).

    How to use this tool

    1. Enter the x component, y component and z component of Vector A.
    2. Enter all three components of Vector B in the same coordinate system and compatible units.
    3. Click Calculate to see the magnitudes, dot product, cross-product components and angle.

    What do three vector components describe?

    A three-dimensional vector describes size and direction in space. Displacement, velocity and force are vector quantities: their directions matter as well as their amounts. The components (Aₓ, Aᵧ, Az) describe Vector A along three mutually perpendicular axes, x, y and z.

    Each component is signed. A positive value points along the positive direction of its axis, a negative value points the other way, and zero means there is no component along that axis. A 3d vector calculator uses the components of two vectors to find their magnitudes, dot product, cross product and angle.

    A vector describes a direction and length rather than a fixed location. When it represents displacement between two points, its components are the changes in x, y and z from the starting point to the ending point. OpenStax’s vectors in space chapter explains this component representation.

    Finding a vector’s length in space

    The magnitude |A| is the length of the vector. Extending the Pythagorean theorem to three perpendicular components gives:

    |A| = √(Aₓ² + Aᵧ² + Az²)

    Vector B has the same formula with its own components. The magnitude is nonnegative, even when some components are negative. For a velocity vector it gives speed; for a force vector it gives the force’s strength. Components within a vector must use a common unit, and its magnitude uses that unit too.

    The dot product and angle between vectors

    The dot product multiplies corresponding components and adds them. The result is a scalar, a single number rather than another direction in space:

    A · B = AₓBₓ + AᵧBᵧ + AzBz

    It is also equal to |A||B| cos θ, where θ is the angle between vectors placed tail to tail. For nonzero vectors, its sign tells you whether that angle is below a right angle, exactly a right angle or above it: positive, zero or negative, respectively. Perpendicular vectors are also called orthogonal. MIT’s dot product notes connect these algebraic and geometric definitions.

    To find the angle, divide the dot product by the product of the magnitudes, then take the inverse cosine:

    θ = arccos((A · B) ÷ (|A||B|))

    The angle is unsigned and lies between 0° and 180°, or 0 and π radians. Vectors in the same direction have an angle of zero; opposite directions have an angle of 180°. If either vector has zero magnitude, the angle is undefined because that vector has no direction. The calculator reports both degrees and radians.

    The cross product gives a perpendicular vector

    The cross product A × B has three components. For nonparallel vectors it points perpendicular to both A and B, and therefore perpendicular to the plane they span. Such a direction is called a normal to the plane. If C = A × B, its components are:

    • Cₓ = AᵧBz − AzBᵧ
    • Cᵧ = AzBₓ − AₓBz
    • Cz = AₓBᵧ − AᵧBₓ

    These are the x, y and z results shown by the calculator. A normal vector does not have to be a unit vector: the cross product’s length depends on the lengths and angle of the original vectors. The component formula and geometric definition appear together in NIST’s vector reference.

    Direction follows the right-hand rule

    There are two opposite directions perpendicular to a plane. The right-hand rule selects the direction for A × B: point the fingers of your right hand along A, then curl them toward B through the smaller angle. Your thumb points along the cross product.

    Order matters. B × A is the negative of A × B, so swapping the vectors reverses every component of the result. This convention assumes right-handed coordinate axes. MIT’s cross product notes illustrate the rule and its connection to area.

    Parallel vectors, including vectors pointing in opposite directions, have a zero cross product. The result is also zero if either input vector is zero. In these cases there is no nonzero cross-product direction.

    Area and turning effects

    The length of the cross product is |A × B| = |A||B| sin θ. For displacement vectors that form adjacent sides of a parallelogram, this is its area. The triangle between those sides has half the area. These areas use square units when the components use a common length unit. The relationship follows from base times perpendicular height, as shown in OpenStax’s cross product chapter.

    The same operation describes torque, the turning effect of a force about a point. In τ = r × F, r runs from that point to where the force acts, and F is the force vector. The cross product gives an axis direction and accounts for how much of the force acts across the lever arm. This is one of the physical uses explained in OpenStax’s products of vectors chapter.

    More tools: Browse all calculators and unit converters.

    Calculate 3D vectors on your phone

    Use the Vector Calculator (3D) in Unit Converter when working with vectors in space. Download it free from the App Store or Google Play.

    Leave a Reply

    Your email address will not be published. Required fields are marked *