Investors & landlords

So I only need to pay the short or long capital gain rate. And I don’t need to pay the taxes like I get paid from a job which I need to pay state, federal, Medicare, social security, etc?