Direction of a Vector Formula with Examples

#Formula
TL;DR
The direction of a vector formula is θ=arctan⁡(yx)\theta = \arctan\left(\frac{y}{x}\right), adjusted for the quadrant the vector lies in. This article gives five worked examples.
BT
Bhanzu TeamLast updated on November 7, 20266 min read

Key Points

  • The direction of a vector formula is θ=arctan⁡(yx)\theta = \arctan\left(\frac{y}{x}\right), giving the angle the vector makes with the positive xx-axis.

  • The arctangent returns values in only two quadrants, so vectors pointing left require adding 180 degrees to the raw result.

  • The order is yy over xx, the vertical component divided by the horizontal one, and reversing it gives the complementary angle instead.

  • In three dimensions, direction is given by three direction cosines, each a component divided by the vector's magnitude.

  • A vector's direction is a property of that single vector, which is a different question from the angle between two vectors.

What Is the Direction of a Vector Formula?

The direction of a vector formula gives the angle a vector makes with the positive xx-axis, from its components:

θ=arctan⁡(yx)\theta = \arctan\left(\frac{y}{x}\right)

The arctangent is the inverse tangent function. NIST's Digital Library of Mathematical Functions denotes its principal branch arctan⁡z\arctan z and tabulates its principal values, giving arctan⁡(1)=π4\arctan(1) = \frac{\pi}{4} and arctan⁡(±∞)=±π2\arctan(\pm\infty) = \pm\frac{\pi}{2}. Those principal values cover only the right half of the plane, which is why a quadrant check is part of the method.

Why the Quadrant Adjustment Is Needed

Dividing yy by xx loses information. The vector (3,4)(3, 4) and the vector (−3,−4)(-3, -4) give the same quotient, 43\frac{4}{3}, because two negatives cancel, yet they point in exactly opposite directions.

The arctangent cannot recover what the division discarded. Its principal values run only from −90-90 to 9090 degrees, which covers vectors pointing right but nothing pointing left.

So the rule is to compute the raw arctangent, then look at the signs of the components. If xx is negative the vector points left, and 180 degrees must be added to bring the angle into the correct quadrant.

Variable Key

Symbol

Meaning

Unit or type

Notes

xx

horizontal component

any unit

the denominator

yy

vertical component

same unit

the numerator

θ\theta

direction angle

degrees or radians

measured from the positive xx-axis

∣v∣\lvert v \rvert

magnitude

same unit

x2+y2\sqrt{x^2+y^2}, needed for direction cosines

Examples of the Direction of a Vector Formula

Example 1

Find the direction of the vector (3,4)(3, 4).

θ=arctan⁡(43)≈53.13∘\theta = \arctan\left(\frac{4}{3}\right) \approx 53.13^\circ

Final answer: about 53.13∘53.13^\circ. Both components are positive, so the vector lies in the first quadrant and no adjustment is needed.

Example 2

Find the direction of the vector (−3,−4)(-3, -4).

The quotient is −4−3=43\frac{-4}{-3} = \frac{4}{3}, so the calculator returns

arctan⁡(43)≈53.13∘\arctan\left(\frac{4}{3}\right) \approx 53.13^\circ

But 53.13∘53.13^\circ points up and to the right, into the first quadrant, while this vector has both components negative and so points down and to the left. The raw value cannot be the answer.

Both components being negative places the vector in the third quadrant, so add 180 degrees:

θ≈53.13+180=233.13∘\theta \approx 53.13 + 180 = 233.13^\circ

Final answer: about 233.13∘233.13^\circ. Sketching the components before trusting a calculator catches this every time.

Example 3

Find the direction of the vector (−5,12)(-5, 12).

arctan⁡(12−5)≈−67.38∘\arctan\left(\frac{12}{-5}\right) \approx -67.38^\circ

Here xx is negative and yy positive, placing the vector in the second quadrant, so add 180:

θ≈−67.38+180=112.62∘\theta \approx -67.38 + 180 = 112.62^\circ

Final answer: about 112.62∘112.62^\circ

Example 4

Find the direction of the vector (0,7)(0, 7).

The formula would divide by zero, so read the geometry instead. The vector has no horizontal component and a positive vertical one, so it points straight up.

Final answer: exactly 90∘90^\circ. This matches the DLMF value arctan⁡(∞)=π2\arctan(\infty) = \frac{\pi}{2}, approached as xx tends to zero from the positive side.

Example 5

Find the direction cosines of the three-dimensional vector (2,3,6)(2, 3, 6).

First the magnitude, then each component divided by it:

∣v∣=4+9+36=49=7\lvert v \rvert = \sqrt{4+9+36} = \sqrt{49} = 7 cos⁡α=27,cos⁡β=37,cos⁡γ=67\cos\alpha = \frac{2}{7}, \quad \cos\beta = \frac{3}{7}, \quad \cos\gamma = \frac{6}{7}

Final answer: 27\frac{2}{7}, 37\frac{3}{7} and 67\frac{6}{7}.

A useful check: the squares of the three direction cosines sum to 1, since 4+9+3649=1\frac{4+9+36}{49} = 1.

Don't Confuse Direction With These Three

Quantity

Formula

What it describes

Direction angle

arctan⁡(yx)\arctan\left(\frac{y}{x}\right)

one vector's angle from the xx-axis

Magnitude

x2+y2\sqrt{x^2+y^2}

one vector's length

Angle between two vectors

from the dot product

the gap between two directions

Direction cosines

x∣v∣\frac{x}{\lvert v \rvert}, and so on

direction in three dimensions

The third row answers a different question entirely. A single vector has a direction; a pair of vectors has an angle between them, and that is found from the dot product rather than from an arctangent.

Where Do Students Trip Up on the Direction of a Vector?

Mistake 1: Trusting the raw arctangent

Where it slips in: A calculator returns a number and the number looks like an angle.

Don't do this: Report arctan⁡(−4−3)=53.13∘\arctan\left(\frac{-4}{-3}\right) = 53.13^\circ for the vector (−3,−4)(-3,-4).

The correct way: Check the signs of xx and yy, and add 180 degrees whenever xx is negative. The arctangent range covers only half the plane.

Students who sketch the two components on axes before computing anything get the quadrant right every time, because the sketch shows which way the vector actually points. The calculator cannot see the sketch, which is precisely the problem.

Mistake 2: Dividing xx by yy

Where it slips in: The components are usually written xx first, so they get divided in that order.

Don't do this: θ=arctan⁡(xy)\theta = \arctan\left(\frac{x}{y}\right)

The correct way: θ=arctan⁡(yx)\theta = \arctan\left(\frac{y}{x}\right). Reversing the fraction returns the complementary angle, so 53.13∘53.13^\circ becomes 36.87∘36.87^\circ and the two sum to 90.

Mistake 3: Confusing direction with the angle between two vectors

Where it slips in: Both are angles involving vectors.

Don't do this: Use an arctangent of components to find the angle separating two vectors.

The correct way: A direction angle belongs to one vector and is measured from the axis. The angle between two vectors comes from their dot product, which is a different calculation.

Bottom Line

  • The direction of a vector formula is θ=arctan⁡(yx)\theta = \arctan\left(\frac{y}{x}\right), measured from the positive xx-axis.

  • The division loses the component signs, so the quadrant must be settled separately, adding 180 degrees when xx is negative.

  • Reversing the fraction to xy\frac{x}{y} returns the complementary angle rather than the direction.

  • In three dimensions, direction becomes three direction cosines whose squares sum to 1.

  • To work through vectors with a teacher, explore a trigonometry tutor or math classes online.

Where to Go From Here

Find the direction of (5,−5)(5, -5) and of (−2,2)(-2, 2), taking care with the quadrants. Then find the direction cosines of (1,2,2)(1, 2, 2) and check that their squares sum to 1.

Want a live Bhanzu trainer to walk through more vector problems? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the direction of a vector formula?
θ=arctan⁡(yx)\theta = \arctan\left(\frac{y}{x}\right), the arctangent of the vertical component divided by the horizontal one, adjusted for quadrant.
Why does the direction of a vector formula need a quadrant check?
Because dividing yy by xx discards the individual signs, so opposite vectors give identical quotients. The arctangent returns values only between −90-90 and 9090 degrees, which covers half the plane, so vectors pointing left need 180 degrees added.
What is the direction of a vector with zero horizontal component?
Either 9090 or 270270 degrees, depending on the sign of yy. The formula would divide by zero, so the direction is read from the geometry.
How is direction given in three dimensions?
By three direction cosines, each component divided by the magnitude. Their squares always sum to 1.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →