Taxes needed to pay

Hi, if I sell a Stock and i make a gain which type of taxes I need to pay I live in New York State. And please provide an example please thank you.