When Can You Sell a Stock and Still Get the Dividend?

DividendRanks Research6 min read

Key Takeaways

  • You can sell on or after the ex-dividend date and still receive the dividend
  • Selling before the ex-dividend date means you forfeit the upcoming payment
  • The dividend is paid to whoever owned shares at the close of business on the day before the ex-date
  • Selling immediately after the ex-date does not create a profit because the stock price adjusts downward

You can sell a stock on or after the ex-dividend date and still receive the dividend. The critical cutoff is the ex-dividend date: as long as you owned shares at market close on the business day before the ex-date, the dividend is yours regardless of what you do with the shares afterward. You could sell the stock the very morning the ex-date arrives and the dividend payment will still land in your brokerage account on the scheduled payment date, typically two to four weeks later.

This is one of the most frequently asked questions in dividend investing, and the answer is refreshingly simple once you understand the mechanics. The company pays dividends to shareholders of record — meaning whoever is on the books as an owner on the record date. Since the ex-dividend date is set one business day before the record date under T+1 settlement, owning the stock through the close on the day before the ex-date is all that is required.

The Exact Timeline

Let us walk through a specific example. Say Procter & Gamble (PG) has these dividend dates:

  • Declaration date: January 14
  • Ex-dividend date: January 23 (Thursday)
  • Record date: January 24 (Friday)
  • Payment date: February 15

If you own PG shares at the close of trading on Wednesday, January 22 (the day before the ex-date), you are eligible for the dividend. You can then sell your shares at any point starting on Thursday, January 23, and the dividend will still be deposited into your account on February 15. The buyer of your shares on January 23 will not receive this particular dividend — they bought the stock "ex-dividend."

However, if you sell on January 22 (before the ex-date), the buyer becomes the shareholder of record and receives the dividend instead of you. The timing difference of a single day can mean the difference between collecting or forfeiting the payment.

Why Selling After the Ex-Date Is Not Free Money

Some investors wonder whether they can buy a stock the day before the ex-date, collect the dividend, and sell the next day for an easy profit. In theory, this "dividend capture" strategy sounds appealing. In practice, it rarely works because the stock price drops by approximately the dividend amount on the ex-date.

If PG closes at $170 on January 22 and the quarterly dividend is $1.0065, the stock will open around $168.99 on January 23. You receive $1.0065 per share in cash, but your shares are now worth roughly $1.0065 less. After accounting for taxes on the dividend (taxed as ordinary income if held under 61 days) and any bid-ask spread, you typically break even or lose a small amount. For more on this topic, see our article on whether dividends are free money.

Tax Considerations When Selling Near the Ex-Date

If your goal is to qualify for the lower qualified dividend tax rate, selling too soon after the ex-date creates a problem. The IRS requires you to hold the stock for more than 60 days during the 121-day window surrounding the ex-dividend date. If you buy the day before the ex-date and sell the day after, you have held for only two days — far short of the 61-day requirement.

As a result, the dividend will be taxed at your ordinary income rate (potentially up to 37%) rather than the qualified rate (0%, 15%, or 20%). This significantly eats into any potential profit from a short-term dividend capture strategy.

For long-term holders who have owned the stock for months or years, this is not an issue. The 61-day requirement is automatically satisfied, and selling near the ex-date does not retroactively change the tax treatment of dividends you already received during your holding period.

Strategic Considerations for Selling Dividend Stocks

If you have decided to sell a dividend stock and a payment date is approaching, it usually makes sense to wait until the ex-dividend date to sell. The math is straightforward:

  • Selling before the ex-date: You receive the current market price but forfeit the dividend.
  • Selling on or after the ex-date: You receive a slightly lower market price (because of the ex-date adjustment) plus the dividend. The total proceeds are roughly the same, but you lock in the income portion.

The exception is if you need to sell urgently for other reasons — the difference of a few days for a dividend payment may not be worth the risk of holding through market volatility. But if you are simply planning an orderly sale and the ex-date is within a week or two, waiting to collect the dividend is generally the better choice.

What Happens to Pending Dividends After You Sell

After selling your shares on or after the ex-date, the dividend is still owed to you. There is typically a gap of two to four weeks between the ex-date and the payment date. During this period, you no longer own the stock, but the dividend is "in transit" and will arrive in your brokerage account on the payment date as scheduled.

If you transfer between brokerages after the ex-date but before the payment date, the dividend follows your account. Your old brokerage will forward it to your new one, though this may take a few extra days. If you are planning an account transfer, check with both brokerages to ensure dividends are not lost in transition.

Frequently Asked Questions

If I sell on the ex-dividend date, do I still get the dividend?

Yes. Selling on the ex-dividend date means you were the shareholder of record (because you owned shares at the close on the day before the ex-date). The dividend will be deposited into your account on the payment date even though you no longer own the shares.

Can I sell the stock before the payment date and still collect?

Yes. The payment date is when the cash is distributed, but your eligibility was determined on the record date (one day after the ex-date). You can sell any time after the ex-date — even weeks before the payment date — and the dividend will still be paid to you.

What if I sell one day before the ex-dividend date?

You will not receive the dividend. Selling before the ex-date transfers ownership to the buyer, who becomes the shareholder of record instead of you. If you want the dividend, you must hold through the close on the day before the ex-date at minimum.

This is educational content, not financial advice. Always do your own research before making investment decisions.