Sine cosine tangent calculator
One angle gives you all six trig functions at once, so 30° returns a sine of 0.5 and a cosecant of 2, with cosine, tangent, secant and cotangent beside them. At 0°, 90° or 180° the missing values are named, not faked. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Angle measure
- 30
- Angle unit
- Degrees
- Angle radians
- 0.5235987756
- Angle degrees
- 30
- Sin
- 0.5
Sine, cosine, and tangent are the workhorses of right-triangle geometry, circular motion, wave equations, and computer graphics. Their reciprocal partners—cosecant, secant, and cotangent—appear just as often in identities, calculus limits, and engineering formulas. Use it to grade trig tables, validate shader or game-engine angles, batch-convert survey bearings into unit-circle components, or teach why tan and sec blow up at ninety degrees while csc and cot fail at zero and one hundred eighty.
What the six trigonometric functions mean
On the unit circle an angle θ measured in radians from the positive x-axis lands at the point (cos θ, sin θ). Sine is the vertical coordinate, cosine the horizontal, and tangent is the ratio sine over cosine—the slope of the ray at that angle. Cosecant is one over sine, secant is one over cosine, and cotangent is cosine over sine (equivalently one over tangent).
When the angle is given in degrees, convert first with θ_rad equals θ_deg times π divided by one hundred eighty, then evaluate with the host sine and cosine primitives. A thirty-degree angle has sine one half, cosine square root of three over two, and tangent one over square root of three; the reciprocals follow immediately. At zero degrees sine is zero, so cosecant and cotangent are undefined.
At ninety degrees cosine is zero, so tangent and secant are undefined. The formulas are elementary after at most one unit conversion: no series expansion is re-implemented in userland, no sampling is required, and the result does not depend on locale, time zone, or network state.
What you can do with it
Game, graphics, and animation angle batches
Convert heading or joint angles into unit-circle components and reciprocal slopes for shaders, sprites, or physics without embedding ad-hoc Math calls in every service.
Survey, navigation, and engineering unit-circle helpers
Batch-evaluate bearings and phase angles into sin, cos, tan, csc, sec, and cot with honest errors at singular multiples of ninety degrees or π/2.
FAQ
Which trigonometric functions does this calculator return?
All six elementary values: sine, cosine, tangent, cosecant, secant, and cotangent for the given angle in degrees or radians.
What happens at 90° or 0°?
At 90° (and odd multiples of 90°), cosine is zero so tangent and secant are undefined. At 0° and 180° (multiples of 180°), sine is zero so cosecant and cotangent are undefined.
Can I enter the angle in radians?
The default is degrees for classroom and survey workflows.
How are the formulas defined?
Degrees are converted with θ_rad = θ_deg·π/180 first.
Is the sine cosine tangent calculator free?
The browser tool is free and runs locally.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/trig/sin-cos-tan \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"angle":30}'const res = await fetch("https://api.kit.forhosting.com/trig/sin-cos-tan", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"angle": 30
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/trig/sin-cos-tan",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"angle": 30
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/trig/sin-cos-tan", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"angle":30}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"angle":30}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/trig/sin-cos-tan", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"angle": 30
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "trig.sin_cos_tan",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Limits
max_abs_angle | 1000000000000 |
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
This capability takes a single angle in degrees or radians and returns all six values as deterministic JSON, with a hard error when any function is undefined at that angle. There is no computer-algebra system, no random seed, and no wall-clock dependency: the free browser tool and the prepaid API path run the same pure solve function, so a homework check and a production script agree after fixed decimal rounding.
What the six trigonometric functions mean
This tool refuses those singular angles with invalid_input instead of returning Infinity or inventing a partial answer, which keeps scripts, graders, and API clients from treating a mathematical impossibility as a numeric success.
How to call the API and what comes back
Use it from homework pipelines, interview-prep sandboxes, game and graphics tooling, survey and navigation scripts, or any workflow that needs reproducible six-function trig tables without installing a computer-algebra package on every machine. Send a JSON body with angle and, optionally, angle_unit. Field angle is the finite measure to evaluate; aliases theta, the θ character, and a map to the same meaning. Optional angle_unit is degrees by default or radians when you pass radians (aliases unit and angle_mode also work). On success the response echoes angle and angle_unit; adds angle_radians and angle_degrees for convenience; returns sin, cos, tan, csc, sec, and cot as rounded numbers; and includes method set to six_function_trig plus a short formula block documenting each definition. Failed validation—missing angle, a non-finite value, an unknown unit, a magnitude past published limits, or an angle where sin or cos is effectively zero—returns invalid_input and is never charged. Pricing is a flat $0.002 per successful request with unit item and zero marginal unit price.
Practical tips, singularities, and related searches
Avoid feeding ninety degrees, two hundred seventy degrees, or odd multiples of π over two if you need all six values—those angles make cosine zero and trigger the undefined-function error for tangent and secant. Likewise avoid zero, one hundred eighty, and integer multiples of π when you need cosecant and cotangent. Prefer classroom angles such as thirty, forty-five, and sixty degrees when checking against hand tables, because the exact radical values are well known and the rounded API output should match to many decimal places. When working in radians, common inputs are π over six, π over four, and π over three; set angle_unit to radians so the conversion step is skipped. If your pipeline only needs sine and cosine, you can still call this tool for defined angles and ignore the reciprocal fields, or catch invalid_input and fall back to a sin/cos-only path. Absolute angle magnitude is capped so intermediate IEEE doubles stay finite on the Worker and in the browser. This landing targets people searching for a sine cosine tangent calculator or a sin cos tan csc sec cot tool in degrees or radians; it is not an inverse-trig solver and does not prove identities. Failed tasks that return invalid_input do not consume prepaid balance, which keeps exploratory scripts cheap when learners probe singular angles on purpose. After a successful call, a useful sanity check is sin squared plus cos squared near one, tan times cot near one, and csc times sin near one within floating tolerance.
Integration use cases
Homework and exam checks for sin, cos, and tan tables
Give students an angle in degrees or radians; compare their hand-computed sin, cos, tan, and reciprocals against a deterministic API or free browser result.