Avoiding tax underpayment due to unexpected stock capital gains

I earned more than expected capital gains from stock sale this year and I am wondering whether I have done considerably lower tax withholding this year. I also wonder whether I will have to pay penalty for tax under payment  when I file taxes in April 2015. Is there a way to avoid this IRS penalty by paying estimated tax payments before the year end?