School subjects are common nouns when used generally unless they are the name of a language. Names of specific classes or courses are proper nouns.
When you are talking about a school subject in a general way, you do not need to capitalize it unless it is the name of a language. For example, science, social studies, and math do not need to be capitalized, but German and Spanish do because languages are proper nouns.
When you are naming a specific class or course, such as Science 241 or Math 100, always capitalize it. Capitalize course titles such as "History of the United States" and "Elementary Physics."
The following example sentences show when to capitalize school subjects and course names, and when not to.
I hope this helps.