Find the sample you need, or check what margin a size you already have gives you.
Proportion for survey questions with a percentage answer; mean for numeric measurements like height or spend.
How often the true value falls inside your interval across many repeated studies. 95% is the standard default.