Instructions for using the COS function in Excel The COS function in Excel is a trigonometric function in Excel, which calculates the cosine of a given angle quickly with the same accuracy as when you use a calculator.