Typically, it is calculated as the difference between the yield on a corporate bond and the benchmark rate. The yield on a government bond generally is considered to be a benchmark rate. The credit spread thus gives an indication of the additional risk that lenders take when they buy corporate debt versus government debt of the same maturity.