Cosine of angle in degrees calculator
The cosine of 180° is −1, and −60° has the same cosine as 60°. Enter any angle in degrees, positive, negative or above 360, and get its cosine between −1 and 1 plus the equivalent angle within one turn. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Angle
- 60
- Angle degrees
- 60
- Normalized degrees
- 60
- Cosine
- 0.5
This cosine of an angle in degrees calculator converts a degree measurement into its cosine, a dimensionless value from minus one through one. Enter a positive angle, a negative angle, or an angle beyond one full turn and receive both the original value and its equivalent normalized angle. The calculation is deterministic, accepts ordinary decimal or scientific notation, and reports invalid input clearly instead of returning a misleading result. It is useful for quick checks, classroom work, geometry, engineering formulas, simulations, and automated data pipelines.
What cosine means for an angle in degrees
Cosine describes the horizontal coordinate of a point on the unit circle. The resulting horizontal coordinate is the cosine. Because a point on the unit circle can never have a horizontal coordinate below minus one or above one, every valid result stays within that closed interval.
Familiar landmarks make the output easy to check. Zero degrees has cosine one, ninety degrees has cosine zero, and one hundred eighty degrees has cosine minus one. The pattern then repeats every three hundred sixty degrees.
Cosine is also an even function, so opposite angles share a value: the cosine of negative sixty degrees equals the cosine of positive sixty degrees. This calculator keeps degrees as the public input unit, so you do not need to convert the measurement to radians before submitting it. The returned formula records the conversion used internally and makes the numerical result easier to audit.
How the calculator handles full turns and numeric input
Angles are not limited to the first turn. A value such as four hundred twenty degrees points in the same direction as sixty degrees, while negative three hundred degrees also reaches that direction. The original angle is returned separately, so normalization never hides what was submitted.
Empty strings, words, booleans, arrays, objects, infinity, and not-a-number values are rejected. This strict parsing prevents accidental coercions such as treating true as one. Exact principal quarter-turn landmarks are handled explicitly, avoiding tiny floating-point remnants where the mathematical answer is exactly zero.
For other inputs, standard floating-point precision applies, and the result is clamped defensively to the promised interval from minus one to one.
Using the result reliably in calculations
Use the cosine output anywhere a formula expects a dimensionless cosine ratio. In a right triangle, multiplying a hypotenuse by the cosine of an acute angle gives the adjacent component. In vector work, cosine helps project a magnitude onto an axis.
In periodic models, it can describe displacement, voltage, illumination, or another quantity whose phase is supplied in degrees. Always keep the unit convention visible: this capability expects degrees, while many programming-language cosine functions expect radians. When comparing floating-point results, use a tolerance appropriate to the surrounding calculation instead of demanding exact equality, except at the explicit quarter-turn landmarks.
What you can do with it
Resolve a triangle component
Find the cosine factor needed to convert a known magnitude into its adjacent horizontal component.
Check coursework and formulas
Verify degree-based cosine values, including negative angles and angles beyond a complete turn.
Normalize data pipeline calculations
Validate incoming degree measurements and produce a consistent cosine value for later numeric processing.
FAQ
Does the input use degrees or radians?
It uses degrees only. The solver converts the normalized degree value to radians internally before evaluating cosine.
Can I enter a negative angle?
Yes. Any finite real degree value is accepted, including negative values and numeric strings.
What happens with an angle greater than 360 degrees?
The angle is reduced modulo 360 for calculation. Both the original and normalized degree values are returned.
Why might a decimal result not be exact?
Most trigonometric values are irrational and are represented with standard floating-point precision. Exact quarter-turn landmarks are returned as exact minus one, zero, or one.
How is cosine used in a right triangle?
Multiply the hypotenuse by the cosine of an acute angle to get the side next to that angle. The same idea projects any magnitude onto an axis when you work with vectors.
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/cos-degrees \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"angle":60}'const res = await fetch("https://api.kit.forhosting.com/trig/cos-degrees", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"angle": 60
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/trig/cos-degrees",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"angle": 60
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/trig/cos-degrees", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"angle":60}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"angle":60}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/trig/cos-degrees", 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": 60
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "trig.cos_degrees",
"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.
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
What cosine means for an angle in degrees
Begin at the point one, zero and rotate by the entered angle: counterclockwise for a positive angle and clockwise for a negative one.
How the calculator handles full turns and numeric input
The calculator reduces the supplied value modulo three hundred sixty before evaluating cosine and returns that reduced value as normalized_degrees. This reduction keeps the trigonometric operation compact while preserving the periodic meaning of the original angle. Inputs may be JSON numbers or strings containing a conventional decimal number, including a leading sign, a decimal fraction, or scientific notation.
Using the result reliably in calculations
Passing a radian value as though it were degrees produces a valid-looking but incorrect answer, which is why the output includes angle_degrees and the conversion formula. For automated workflows, treat an invalid_input response as a data-quality failure and correct the source rather than substituting zero. The browser and API execute the same pure solver, so interactive checks and production requests follow identical validation and numerical rules. API requests use the published base price of $0.002.
Technical questions
What does the API request cost?
Each API request uses the published base price of $0.002. The same calculation can run in the browser.