When are taxes on capital gains due the IRS?

Hello and thanks for the help.

 

If I sell a stock or fund early next year and there is a cpital gain on that sale, when am I required (so as not to incure any penalty)  to send the approximate taxes due to the IRS?

 

Tank you!