Sine, Cosine and Tangent

A point on the unit circle at angle θ has coordinates (cos θ, sin θ).

sin θ = y/r cos θ = x/r tan θ = y/x

tan θ = sin θ ÷ cos θ, the slope of the line. It is undefined at 90°, where cos θ = 0.

sin²θ + cos²θ = 1 always holds.

Calculator

Change a value and the result and picture update instantly.

Result

sin θ0.5
cos θ0.866025
tan θ0.57735

Animated picture

The picture follows your values. Some points and shapes can be dragged.

Use in game development

Moving in the direction you face, orbiting in a circle and aiming all start with sin and cos.

Code example (JavaScript)

x += Math.cos(angle) * speed;
y += Math.sin(angle) * speed;

What the symbols mean

SymbolMeaning
degAngle θ (degrees)
sinsin θ
coscos θ
tantan θ

More formulas in this category

Frequently asked questions

What is the formula for Sine, Cosine and Tangent?
The formula for Sine, Cosine and Tangent is sin θ = y/r cos θ = x/r tan θ = y/x. A point on the unit circle at angle θ has coordinates (cos θ, sin θ).

Math Formula Quiz Trigonometry

Sources

Checked: 2026-11-29