The problem is if you end up owing a lot of tax as the IRS has a pay-as-you-go rule. See IRS publication 505 for tips on how to calculate what you owe and when you have to make estimated tax payments.
One year I triggered a $10,000 tax on 12/31 at 3pm. I made an estimated tax payment by 1/15. When I first did my taxes, turbotax tried to add an estimated tax payment penalty because I'd only made the one payment. I had to fill out form 2210 to show that I didn't owe until 12/31.
I buy an sell stocks. But when I sell I do i just sell whatever invested in and leave the profits in to sel them at a later time, a year later at least. My question is regarding to the taxable part. When is it applied? Whenever I sell my gaining or everytime I perform the sell?