Commander in Chief

Capitalize only when the title precedes the name, including for the president of the United States.