All the particulars are in the 2018 instructions for form 1040 (start on page 20 for what you are asking about):
https://www.irs.gov/pub/irs-pdf/i1040gi.pdf