Knowledge base / Excel
COS in Excel: radians and horizontal projections
I will show the correct English and Polish formulas, a horizontal projection and why changing a cell's display format cannot repair the calculation.

With COS, the easiest mistake concerns the argument’s meaning rather than the function’s name. Sixty can describe degrees or radians; Excel assumes radians. I would begin with a unit in the input heading and a sketch of the problem. Then I would choose the formula. A correctly calculated cosine of the wrong angle still gives an incorrect answer to the task. The meaning of the input needs to be established before a plausible-looking number can be trusted.
COS expects radians
According to Microsoft’s documentation, COS returns the cosine of an angle in radians. It takes one required argument:
=COS(A2)
If A2 contains degrees, convert them with RADIANS:
=COS(RADIANS(A2))
The Polish version is =COS(RADIANY(A2)). The name COS is shared by both languages. Alternatively, multiply degrees by PI()/180, for example =COS(60*PI()/180). Do not add a conversion to an input that already contains radians. That would change the intended angle rather than make the calculation more careful.
The documentation covers Microsoft 365, Excel 2024, 2021, 2019, 2016 and the web version, among others. This single-argument function has no separator between arguments, but regional decimal notation still matters. English examples use a decimal point and Polish ones a comma. I would describe the angle value and its unit explicitly, rather than depend on the workbook author’s memory when someone returns to the table later.
Use familiar angles to inspect the meaning
Microsoft’s Polish documentation also shows sixty degrees, whose mathematical cosine is one half. Here I combine it with other simple angles. The table gives mathematical values; spreadsheet results may approximate them.
| Angle | English formula | Mathematical value |
|---|---|---|
| 0 radians | =COS(0) |
1 |
| 60 degrees | =COS(RADIANS(60)) |
0.5 |
| π/2 radians | =COS(PI()/2) |
0 |
| π radians | =COS(PI()) |
-1 |
Cosine is dimensionless and lies between -1 and 1. Do not label its result in angle or length units. A further operation, such as multiplication by a segment length, can produce a quantity with units. Nor should every negative result be described as a negative length. For general angles, the sign may describe a component’s direction in the chosen coordinate system. The physical interpretation depends on the way the problem is defined.
A horizontal projection example
In a right triangle, the cosine of an acute angle relates the adjacent side to the hypotenuse. A sketch helps identify which side the known quantity describes. The word “distance” alone cannot establish that relationship.
Take synthetic data: a ten-metre segment makes a sixty-degree angle with the horizontal. We want its horizontal projection. Ten metres is the hypotenuse and the projection is the adjacent side:
=10*COS(RADIANS(60))
The mathematical cosine of sixty degrees is 0.5, so the projection is five metres long. This derives a small example from a definition without claiming a measurement or an executed workbook. The output receives metres from the input length. The cosine remains a dimensionless ratio.
If the required quantity is height, the opposite side relative to the same angle, choose sine. If the angle was measured from the vertical, the relationships between the named sides and that angle change. I would therefore avoid copying a formula merely because its description mentions projection. First identify the reference direction, known length and required quantity. This matters when another report supplies data using a convention that its author understood but did not make explicit in the column name.

A near-zero result needs an accuracy rule
The mathematical cosine of π/2 is zero. Microsoft explains the limited precision of floating-point calculations. A spreadsheet result may be very small instead of exactly zero. Choose tolerance according to the task.
I would not prescribe one decimal-place count for every problem. State which difference matters to the reader and in which unit the final result will be assessed. Rounding the ratio and rounding the length after multiplication happen at different points in the calculation. An exercise can compare them, while a real report needs a deliberate, documented choice. Numerical presentation should follow the accuracy requirement rather than quietly define it by whichever cell format happens to be selected.
Ordinary display formatting may hide digits without changing the value used by later calculations. Appearance therefore does not prove equality. I would not change the precision of the whole workbook simply to make one output resemble a school table either. Understand the discrepancy and the scope of any correction first. A local issue does not justify a broad change that may affect unrelated results elsewhere in the workbook. The relevant question is what accuracy this particular calculation actually requires.
Separate three kinds of mistake
The first concerns units: COS(60) asks about sixty radians. The second concerns geometry: cosine does not always connect the requested side with the known length. The third concerns presentation: a visible zero may differ from an exact zero in the calculation. These are separate problems. One display setting or one additional pair of parentheses cannot repair all three. I would identify which question went wrong before editing the formula.
I would also distinguish an inverse function from a reciprocal. COS takes an angle and returns its cosine. Finding an angle from a cosine leads to ACOS. The expression 1/COS(...) is a different operation and does not answer that question. If you need the angle, consult the separate ACOS entry and check its range rather than inverting the numeric result arithmetically. Similar language can conceal different mathematical operations here.
Before applying COS to a column
Take a synthetic segment of length ten and two angles measured from the horizontal: zero and sixty degrees. Describe the expected projections: the full ten and half of it, five. Plan input columns with explicit units and the degree conversion. Finally add a missing angle. Decide how to identify that record so that missing data cannot be presented as a confirmed zero-angle observation. This makes the input policy visible before the formula is copied down the table.
Compare which side you would obtain through SIN. Before working with real data, I want to explain my sketch and the expected range of the result. Recognising a valid COS function name in a formula is only the beginning of that check. The unit, geometric relationship and interpretation still need to agree with the question the workbook is supposed to answer.
Key takeaways
How do I calculate the cosine of 60 degrees in English Excel?
Use COS(RADIANS(60)) or COS(60*PI()/180). COS(60) instead calculates the cosine of 60 radians.
Does COS return an angle?
No. It returns the cosine of an input angle. Finding an angle from a cosine uses ACOS; taking the reciprocal of COS is a different operation.
Does displaying zero change the calculation?
Ordinary display formatting is different from changing the value. For a result near zero, define the required accuracy and comparison rule instead of relying on appearance alone.
AI was used in an automated way while working on this article. If you want to learn how to do it too, check out this project.
