ForHosting KIT · Developer Utilities

Cosine Half-Angle Calculator

The cosine half-angle calculator evaluates cos(theta/2) when you know cos(theta) and the quadrant containing the half-angle.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

It applies the cosine half-angle identity, computes the nonnegative square-root magnitude, and then selects the mathematically correct positive or negative sign from the stated quadrant. The result includes the signed value, its magnitude, the selected sign, and the quadrant used, so each part of the calculation is easy to inspect. This is useful for exact-value exercises, identity checks, and intermediate steps in trigonometry problems.

Enter the cosine and locate the half-angle

Start with the cosine of the original angle, not the angle measure itself. Enter that value in the cosine field as a number from -1 through 1. For example, if cos(theta) = 1/2, enter 0.5. Next, identify the quadrant that contains theta/2 and select I, II, III, or IV. This second input matters because a square root gives a nonnegative magnitude, while a trigonometric value may be positive or negative. Cosine is positive in quadrants I and IV and negative in quadrants II and III. The quadrant must describe the half-angle, rather than theta, because the requested value is cos(theta/2). If a problem gives an interval for theta, divide that interval by two before choosing the quadrant. Pay attention when the interval crosses an axis: a quadrant label describes an open region, while an angle lying exactly on an axis may need to be handled from its exact terminal position. Once both inputs are supplied, the calculator has all information required to choose one unambiguous signed result.

How the half-angle identity produces the result

The calculation uses cos(theta/2) = plus or minus the square root of (1 + cos(theta)) / 2. First, the entered cosine is added to 1 and divided by 2. Because a valid cosine lies between -1 and 1, this radicand lies between 0 and 1, so its real square root is defined. That square root is reported as the magnitude. The selected half-angle quadrant then supplies the sign: positive for quadrant I or IV, and negative for quadrant II or III. Suppose cos(theta) is 0.5 and theta/2 lies in quadrant II. The magnitude is sqrt(0.75), approximately 0.8660254037844386, but cosine is negative in quadrant II, so the returned value is approximately -0.8660254037844386. Keeping magnitude and sign conceptually separate prevents the common mistake of treating the plus-or-minus symbol as two final answers. The quadrant information resolves that symbol. The algorithm uses ordinary deterministic arithmetic and does not infer or alter the quadrant you provide.

Interpret the output and check your work

The primary output is value, the signed cosine of the half-angle. The magnitude field shows the principal square-root result before the quadrant sign is applied. The sign field states whether the chosen branch was positive or negative, and half_angle_quadrant repeats the quadrant used in the decision. Together, these fields make it straightforward to audit a solution line by line. A quick reasonableness check is that the value must remain between -1 and 1, its absolute value should equal magnitude, and its sign should agree with cosine in the selected quadrant. When the entered full-angle cosine is -1, the magnitude is zero; positive zero and negative zero represent the same mathematical result, so the calculator returns ordinary zero while still reporting the branch selected from the quadrant. Decimal output follows JavaScript floating-point precision, so values involving irrational square roots are approximations. If an exercise requires an exact radical, use the displayed calculation structure to write the corresponding square-root expression, while using the returned decimal to confirm its numerical value.

Solve a trigonometry exercise

Turn a known value of cos(theta) and an interval for theta/2 into the correctly signed half-angle cosine.

Check a hand calculation

Compare the magnitude and quadrant-selected sign with each step of a manually applied half-angle identity.

Evaluate an intermediate identity

Compute a stable numerical half-angle value for use in a longer deterministic algebra or geometry workflow.

Which identity does the calculator use?

It uses cos(theta/2) = plus or minus sqrt((1 + cos(theta)) / 2), then resolves the sign from the half-angle quadrant.

Why do I need to provide a quadrant?

The cosine of the full angle determines the magnitude but does not uniquely determine the sign of cos(theta/2). The half-angle quadrant supplies that missing information.

Which quadrants produce a positive result?

Cosine is positive in quadrants I and IV. It is negative in quadrants II and III.

Can I enter an angle in degrees or radians?

No. Enter cos(theta) directly and select the quadrant containing theta/2. Calculate the cosine first if the problem gives only an angle measure.

What happens when the magnitude is zero?

The calculator returns zero because positive and negative zero are the same mathematical value, while also reporting the sign branch selected from the quadrant.

What does an API request cost?

Each API request costs $0.002. The same deterministic calculation can also run in the browser.

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.

POSThttps://api.kit.forhosting.com/trig/cos-half-angle

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.

curl -X POST https://api.kit.forhosting.com/trig/cos-half-angle \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cosine":0.5,"half_angle_quadrant":"I"}'
{
  "cosine": 0.5,
  "half_angle_quadrant": "I"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "trig.cos_half_angle",
  "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.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →