The Wash Sale Rule of Capital Gains Tax


The Wash Sale Rule of Capital Gains Tax

Awash sale is a trading activity in which shares of a security are sold at a loss and substantially identical security is purchased within 30 days. The subsequent purchase could occur before or after the security is sold, creating a 61-day window that must be monitored to identify wash sales.

IRS Explanation of Wash Sales

The IRS defines a wash sale as “a sale of stock or securities at a loss within 30 days before or after you buy or acquire in a fully taxable trade, or acquire a contract or option to buy, substantially identical stock or securities.”  The wash sale rule for gains under Section 1091 of the Internal Revenue Code (IRC) is intended to prevent investors from generating and recognizing artificial losses in situations where they do not intend to reduce their holdings in the securities that are sold.

For purposes of Section 1091 wash sales occur when an investor realizes a loss on the sale of a security and the investor acquires a “substantially identical” security within a 61-day “window” that extends from 30 days before the date of the sale to 30 days after the date of the sale.  If an investor sells the stock at a loss, and then buys a “substantially identical” replacement stock within this 61-day window, a wash sale holding period occurs and the loss is deferred until the replacement shares are sold.

The pro rata loss is added to the cost basis of the replacement shares purchased, and the holding period of the replacement shares includes the holding period of the original shares sold. However, the deferred loss will eventually be recognized when the replacement shares are sold.  For more information about the IRS and the wash sale rule, please see IRS Publication 550.

Wash Sale Example

An investor buys 100 shares of Yahoo stock for $5,000 on October 1. On December 7 the investor sells these 100 shares of Yahoo stock for $4,500. On December 16 the investor buys 100 shares of Yahoo for $4,750. Because the investor bought substantially identical stock within 30 days of the sale of Yahoo, a wash sale occurred and the loss of $500 on the sale of Yahoo cannot be deducted. The loss is deferred and applied to the cost basis of the new tax lot. Therefore, the wash sale in this example would raise the cost basis of the new lot from $4,750 to $5,250.

If you sell a stock and your spouse (if filing jointly) or a corporation you control buys a substantially identical stock, you also have a wash sale. In these cases, the IRC states that losses from the sale of stock can not be recognized at the time of sale, but must be deferred instead.

Wash sales can span tax years. For example, if you sold a stock for a loss in December and repurchased the stock the following January you would have a wash sale replacement shares. For this reason, it is important to include all January trades when calculating your capital gains for Schedule D.

What the Wash Sale Rule Really Means to Investors

If you are active in a particular stock, it is imperative that you monitor your wash sales period before you re-purchase the stock. After you have taken a loss, you need to be aware of the date you can repurchase security and still claim the earlier loss on taxes. Investors may find themselves not being able to realize significant losses due to wash sales.

Manually tracking the wash sale periods or using a portfolio service such as Gains Keeper that can account for wash sales, will prevent you from purchasing the stock in a wash sale period. Nothing is more frustrating than selling stock at a loss to offset your tax bill only to find out after January 1st that a wash sale disallowed the loss.

While you will eventually realize losses deferred by wash sales, avoiding them in the first place will help you maximize your investment performance.

How to Avoid Wash Sales

Wash sales can be avoided by waiting to repurchase replacement shares until after the 30-day window closes.

You can also avoid a wash sale by purchasing similar security, rather than an identical stock, to the one you sold for a loss. For example, if you sold Yahoo for a loss and you were interested in investing in another portal stock, then you could buy Google within the 30-day window and not trigger a wash sale.

Follow GROCO on Facebook

We hope you found this article about “The Wash Sale Rule of Capital Gains Tax” helpful.  If you have questions or need expert tax or family office advice that’s refreshingly objective (we never sell investments), please contact us or visit our Family office page  or our website at  Unfortunately, we no longer give advice to other tax professionals gratis.

To receive our free newsletter, contact us here.

Subscribe our YouTube Channel for more updates.

Alan Olsen, CPA

Alan Olsen, is the Host of the American Dreams Show and the Managing Partner of  GROCO is a premier family office and tax advisory firm located in the San Francisco Bay area serving clients all over the world.


Alan L. Olsen, CPA, Wikipedia Bio is a proud sponsor of The American Dreams Show.



The American Dreams show was the brainchild of Alan Olsen, CPA, MBA. It was originally created to fill a specific need; often inexperienced entrepreneurs lacked basic information about raising capital and how to successfully start a business.

Alan sincerely wanted to respond to the many requests from aspiring entrepreneurs asking for the information and introductions they needed. But he had to find a way to help in which his venture capital clients and friends would not mind.

The American Dreams show became the solution, first as a radio show and now with YouTube videos as well. Always respectful of interview guest’s time, he’s able to give access to individuals information and inspiration previously inaccessible to the first-time entrepreneurs who need it most.

They can listen to venture capitalists and successful business people explain first-hand, how they got to where they are, how to start a company, how to overcome challenges, how they see the future evolving, opportunities, work-life balance and so much more..

American Dreams discusses many topics from some of the world’s most successful individuals about their secrets to life’s success. Topics from guest have included:

Creating purpose in life / Building a foundation for their life / Solving problems / Finding fulfillment through philanthropy and service / Becoming self-reliant / Enhancing effective leadership / Balancing family and work…

Untitled_Artwork copy 4 (Also sponsored by GROCO) provides free access to content and world-class entrepreneurs, influencers and thought leaders’ personal success stories. To help you find your path in life to true, sustainable success & happiness.  It’s mission statement:

In an increasingly complex and difficult world, we hope to help you find your personal path in life and build a strong foundation by learning how others found success and happiness. True and sustainable success and happiness are different for each one of us but possible, often despite significant challenges.

Our mission at is to provide resources and firsthand accounts of how others found their paths in life, so you can do the same.

Posted in
Chris Maxson Ignites Fireplace Innovation

Chris Maxson Ignites Fireplace Innovation

Chris Maxson, owner of Acucraft Fireplace Systems and Managing Partner, Maxson family’s business ventures discusses igniting innovation in the fireplace industry with Alan Olsen. Below are some of the key aspects of Chris Maxson’s influence on the fireplace industry and his unique approach with Acucraft Fireplace Systems. They indicate the rich legacy and innovation themes discussed.…

14 Best Accounting Jokes and Financial Humor

The Best Accounting Jokes for Financial Experts in 8 Laughs & Ledgers: Welcome to the lighter side of accounting! Yes, you read that right. While debits, credits, and balance sheets are serious business, who says accountants can’t have a sense of humor? Today, we’re diving into the funniest accounting jokes that even your auditor can’t…

Navigating High Stakes: Carson Holmquist's Journey in Innovative Logistics

Navigating High Stakes: Carson Holmquist’s Journey in Innovative Logistics

Today, American Dreams host, Alan Olsen, sits down with Carson Holmquist, Co-Founder, Stream Logistics to discuss innovation and navigating high stakes. Transcript: Alan Olsen: Hi, this is Alan Olsen and welcome to American Dreams. My guest today is Carson, Holmquist. Carson. Welcome to today’s show. Carson Holmquist: Thanks, Alan. So, so, so grateful to be…

Sports, Business, and Beyond: A Moment with Alexis Levi

Sports, Business, and Beyond: A Moment with Alexis Levi

Today, American Dreams host, Alan Olsen, sits down with Alexis Levi, a true pioneer in the sports and entertainment industry. As the first African American woman to become the owner and general manager of a men’s professional basketball team, Alexis shares her remarkable journey from being a competitive ice skater to entering the sports world.…