{"id":289,"date":"2014-08-30T10:46:04","date_gmt":"2014-08-30T14:46:04","guid":{"rendered":"http:\/\/www.adjustedcostbase.ca\/blog\/?p=289"},"modified":"2017-03-02T12:26:34","modified_gmt":"2017-03-02T17:26:34","slug":"how-to-calculate-adjusted-cost-base-acb-and-capital-gains","status":"publish","type":"post","link":"https:\/\/www.adjustedcostbase.ca\/blog\/how-to-calculate-adjusted-cost-base-acb-and-capital-gains\/","title":{"rendered":"How to Calculate Adjusted Cost Base (ACB) and Capital Gains"},"content":{"rendered":"<p>The Canada Revenue Agency (CRA) requires, in most cases, that taxes be paid on capital gains for all property including investments such as stocks, bonds, mutual funds, and exchange-traded funds. In the simplest form, a capital gain is equal to the proceeds received when selling a property, minus the original cost of the property.<\/p>\n<p>As a simple example, let\u2019s assumed that you purchased 100 shares of RY for $50 per share settling on March 3, 2012. Then you sell all 100 shares for $120 per share settling on May 1, 2014. For simplicity, let\u2019s assume that you did not pay any commission on either the purchase or sale transactions. In this case the cost of the shares is equal to<\/p>\n<pre>  100 shares x $50\/share\r\n= $5,000<\/pre>\n<p>and the total proceeds of the sale is equal to:<\/p>\n<pre>  100 shares x $120\/share\r\n= $12,000<\/pre>\n<p>This results in a capital gain (applied in the year 2014) equal to:<\/p>\n<pre>Capital Gain = [Sale Proceeds] \u2013 [Original Cost]\r\n             = $12,000 \u2013 $5,000\r\n             = $7,000<\/pre>\n<p>This particular example is very simple because there are no transaction costs, and there is only a single purchase transaction and only purchase and one sale where all shares are sold. When transaction costs are incurred, they must be added to the cost of the shares when buying and subtracted from the sale proceeds when selling. The most common transaction costs for stocks are brokerage commissions, but in general transaction costs can include a number of other such as legal fees.<\/p>\n<p>Things become more complex when there\u2019s a series of multiple buy and sell transactions at various price levels. In this case you might ask yourself, when a sale transaction occurs where only a portion of shares are sold, what should I use as the cost when calculating the capital gain? Should I use the cost of the first shares purchased? The most recent shares purchased? The answer is that the CRA requires you to keep a running total of the Adjusted Cost Base (ACB) for tax purposes.<\/p>\n<p>When you buy shares, the total ACB is recalculated to be the previous total ACB, plus the total cost of the new shares, plus any transaction costs:<\/p>\n<pre>New Total ACB After a Buy Transaction = [Previous Total ACB] + [Cost of New Shares] + [Transaction Costs]<\/pre>\n<p>Or, it can be expressed using the price per share and number of shares purchased:<\/p>\n<pre>New Total ACB After a Buy Transaction = [Previous Total ACB] + ([Share Price] x [Number of Shares Purchased]) + [Transaction Costs]<\/pre>\n<p>When a sale transaction occurs, the new total ACB must be reduced from the previous based on the proportion of shares that are sold:<\/p>\n<pre>New Total ACB After a Sell Transaction = [Previous Total ACB] x (([Previous Number of Shares] \u2013 [Number of Shares Sold]) \/ [Previous Number of Shares])<\/pre>\n<p>Or,<\/p>\n<pre>New Total ACB After a Sell Transaction = [Previous Total ACB] \u2013 ([ACB per Share] x [Number of Shares Sold])<\/pre>\n<p>The capital gain (or loss) from a sale is calculated by taking the proceeds of the sale (less transaction costs) and subtracting the ACB per share multiplied by the number of shares sold:<\/p>\n<pre>Capital Gain (or Loss) = ([Share Price] x [Number of Shares Sold]) \u2013 [Transaction Costs] \u2013 ([ACB per Share] x [Number of Shares Sold])\r\n                       = ([Share Price] x [Number of Shares Sold]) \u2013 [Transaction Costs] \u2013 (([Total ACB] \/ [Previous Number of Shares]) x [Number of Shares Sold])<\/pre>\n<p>Note that ACB can be expressed either as the total ACB or ACB per share. It is important not to confuse the two forms.<\/p>\n<p>As a more complex example, let\u2019s assume the following transactions occur:<\/p>\n<div class=\"table-responsive\"><table  style=\"width:100%; \"  class=\"easy-table easy-table-default \" >\n<thead>\r\n<tr><th  style=\"text-align:right\" ><\/th>\n<th  style=\"text-align:left\" >Settlement Date<\/th>\n<th  style=\"text-align:left\" > Transaction<\/th>\n<th  style=\"text-align:right\" > Shares Bought or Sold<\/th>\n<th  style=\"text-align:right\" >Price Per Share<\/th>\n<th  style=\"text-align:right\" >Commission<\/th>\n<th  style=\"text-align:right\" > Share Balance<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td  style=\"text-align:right\" >1.<\/td>\n<td  style=\"text-align:left\" >Mar 3<\/td>\n<td  style=\"text-align:left\" >Buy<\/td>\n<td  style=\"text-align:right\" >100<\/td>\n<td  style=\"text-align:right\" >$50<\/td>\n<td  style=\"text-align:right\" >$10<\/td>\n<td  style=\"text-align:right\" >100<\/td>\n<\/tr>\n\r\n<tr><td  style=\"text-align:right\" >2.<\/td>\n<td  style=\"text-align:left\" >May 1<\/td>\n<td  style=\"text-align:left\" >Sell<\/td>\n<td  style=\"text-align:right\" >50<\/td>\n<td  style=\"text-align:right\" >$120<\/td>\n<td  style=\"text-align:right\" >$10<\/td>\n<td  style=\"text-align:right\" >50<\/td>\n<\/tr>\n\r\n<tr><td  style=\"text-align:right\" >3.<\/td>\n<td  style=\"text-align:left\" >Jul 18<\/td>\n<td  style=\"text-align:left\" >Buy<\/td>\n<td  style=\"text-align:right\" >50<\/td>\n<td  style=\"text-align:right\" >$130<\/td>\n<td  style=\"text-align:right\" >$10<\/td>\n<td  style=\"text-align:right\" >100<\/td>\n<\/tr>\n\r\n<tr><td  style=\"text-align:right\" >4.<\/td>\n<td  style=\"text-align:left\" >Sep 25<\/td>\n<td  style=\"text-align:left\" >Sell<\/td>\n<td  style=\"text-align:right\" >40<\/td>\n<td  style=\"text-align:right\" >$90<\/td>\n<td  style=\"text-align:right\" >$10<\/td>\n<td  style=\"text-align:right\" >60<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<p>Transaction 1 is identical to the first transaction in the previous example<\/p>\n<pre>New Total ACB = [Previous Total ACB] + ([Share Price] x [Number of Shares Purchased]) + [Transaction Costs]\r\n              = $0 + ($50\/share x 100 shares) + $10\r\n              = $5,000 + $10\r\n              = $5,010<\/pre>\n<p>Note that a capital gain does not occur for a buy transactions; it only needs to be calculated for a sell transaction.<\/p>\n<p>For Transaction 2, the new ACB becomes:<\/p>\n<pre>New Total ACB = [Previous Total ACB] x (([Previous Number of Shares] \u2013 [Number of Shares Sold]) \/ [Previous Number of Shares])\r\n              = $5,010 x ((100 shares \u2013 50 shares) \/ 100 shares)\r\n              = $2,505<\/pre>\n<p>The capital gain for Transaction 2 is calculated as follows:<\/p>\n<pre>Capital Gain (or Loss) = ([Share Price] x [Number of Shares Sold]) \u2013 [Transaction Costs] \u2013 (([Total ACB] \/ [Previous Number of Shares]) x [Number of Shares Sold])\r\n                       = (($120\/share x 50 shares) \u2013 $10) \u2013 (($5,010 \/ 100 shares) x 50 shares)\r\n                       = $3,485<\/pre>\n<p>Next, Transaction 3 (a purchase transaction) results in the following ACB:<\/p>\n<pre>New Total ACB = [Previous Total ACB] + ([Share Price] x [Number of Shares Purchased]) + [Transaction Costs]\r\n              = $2,505 + ($130\/share x 50 shares) + $10\r\n              = $9,015<\/pre>\n<p>Finally, Transaction 4 (a sell transactions) results in the following ACB:<\/p>\n<pre>New Total ACB = [Previous Total ACB] x (([Previous Number of Shares] \u2013 [Number of Shares Sold]) \/ [Previous Number of Shares])\r\n              = $9,015 x ((100 shares \u2013 40 shares) \/ 100 shares)\r\n              = $5,409<\/pre>\n<p>And a capital loss of $16 occurs:<\/p>\n<pre>Capital Gain (or Loss) = ([Share Price] x [Number of Shares Sold]) \u2013 [Transaction Costs] \u2013 (([Total ACB] \/ [Previous Number of Shares]) x [Number of Shares Sold])\r\n                       = (($90\/share x 40 shares) \u2013 $10) \u2013 (($9,015 \/ 100 shares) x 40 shares)\r\n                       = \u2013$16<\/pre>\n<p>As you can see, calculating ACB can become very tedious and complex.\u00a0 The onus is on the taxpayer to track ACB and calculate capital gains. Your brokerage will not, in most cases, perform the calculations for you. And even if they do, the information can often be wrong.<\/p>\n<p>The calculations are summarized in the following table:<\/p>\n<div class=\"table-responsive\"><table  style=\"width:100%; \"  class=\"easy-table easy-table-default \" >\n<thead>\r\n<tr><th  style=\"text-align:right\" ><\/th>\n<th  style=\"text-align:left\" >Settlement Date<\/th>\n<th  style=\"text-align:left\" > Transaction<\/th>\n<th  style=\"text-align:right\" > Shares Bought or Sold<\/th>\n<th  style=\"text-align:right\" >Price Per Share<\/th>\n<th  style=\"text-align:right\" >Commission<\/th>\n<th  style=\"text-align:right\" > Share Balance<\/th>\n<th  style=\"text-align:right\" >ACB<\/th>\n<th  style=\"text-align:right\" >ACB per Share<\/th>\n<th  style=\"text-align:right\" >Capital Gain (Loss)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td  style=\"text-align:right\" >1.<\/td>\n<td  style=\"text-align:left\" >Mar 3<\/td>\n<td  style=\"text-align:left\" >Buy<\/td>\n<td  style=\"text-align:right\" >100<\/td>\n<td  style=\"text-align:right\" >$50<\/td>\n<td  style=\"text-align:right\" >$10<\/td>\n<td  style=\"text-align:right\" >100<\/td>\n<td  style=\"text-align:right\" >$5,010<\/td>\n<td  style=\"text-align:right\" >$50.10<\/td>\n<td  style=\"text-align:right\" >\u2013<\/td>\n<\/tr>\n\r\n<tr><td  style=\"text-align:right\" >2.<\/td>\n<td  style=\"text-align:left\" >May 1<\/td>\n<td  style=\"text-align:left\" >Sell<\/td>\n<td  style=\"text-align:right\" >50<\/td>\n<td  style=\"text-align:right\" >$120<\/td>\n<td  style=\"text-align:right\" >$10<\/td>\n<td  style=\"text-align:right\" >50<\/td>\n<td  style=\"text-align:right\" >$2,505<\/td>\n<td  style=\"text-align:right\" >$50.10<\/td>\n<td  style=\"text-align:right\" >$3,485<\/td>\n<\/tr>\n\r\n<tr><td  style=\"text-align:right\" >3.<\/td>\n<td  style=\"text-align:left\" >Jul 18<\/td>\n<td  style=\"text-align:left\" >Buy<\/td>\n<td  style=\"text-align:right\" >50<\/td>\n<td  style=\"text-align:right\" >$130<\/td>\n<td  style=\"text-align:right\" >$10<\/td>\n<td  style=\"text-align:right\" >100<\/td>\n<td  style=\"text-align:right\" >$9,015<\/td>\n<td  style=\"text-align:right\" >$90.15<\/td>\n<td  style=\"text-align:right\" >\u2013<\/td>\n<\/tr>\n\r\n<tr><td  style=\"text-align:right\" >4.<\/td>\n<td  style=\"text-align:left\" >Sep 25<\/td>\n<td  style=\"text-align:left\" >Sell<\/td>\n<td  style=\"text-align:right\" >40<\/td>\n<td  style=\"text-align:right\" >$90<\/td>\n<td  style=\"text-align:right\" >$10<\/td>\n<td  style=\"text-align:right\" >60<\/td>\n<td  style=\"text-align:right\" >$5,409<\/td>\n<td  style=\"text-align:right\" >$90.15<\/td>\n<td  style=\"text-align:right\" >($16)<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<p><a title=\"AdjustedCostBase.ca\" href=\"https:\/\/www.adjustedcostbase.ca\/\">AdjustedCostBase.ca<\/a> is a web application that performs all the necessary calculations for you. All you need to do is enter the details of each transaction. Although it\u2019s important to understand the concepts when calculating ACB, AdjustedCostBase.ca makes things less tedious and reduces the risk of human calculation error.\u00a0 Here are the results after entering the transactions from the example into AdjustedCostBase.ca:<\/p>\n<p><a href=\"https:\/\/www.adjustedcostbase.ca\/blog\/wp-content\/uploads\/transactions_for_ry.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-306\" src=\"https:\/\/www.adjustedcostbase.ca\/blog\/wp-content\/uploads\/transactions_for_ry.png\" alt=\"Transactions for RY\" width=\"1208\" height=\"195\" srcset=\"https:\/\/www.adjustedcostbase.ca\/blog\/wp-content\/uploads\/transactions_for_ry.png 1208w, https:\/\/www.adjustedcostbase.ca\/blog\/wp-content\/uploads\/transactions_for_ry-300x48.png 300w, https:\/\/www.adjustedcostbase.ca\/blog\/wp-content\/uploads\/transactions_for_ry-1024x165.png 1024w, https:\/\/www.adjustedcostbase.ca\/blog\/wp-content\/uploads\/transactions_for_ry-624x100.png 624w\" sizes=\"auto, (max-width: 1208px) 100vw, 1208px\" \/><\/a><\/p>\n<p>This overview is meant to be a general guideline, and will not apply in all situations.<\/p>\n<p>The following are some other details to consider:<\/p>\n<ul>\n<li>The date used for calculating ACB should be the settlement date, not the purchase date.\u00a0 For simplicity, you really only need to carefully consider the difference between the two dates when the purchase occurs in the last few business days of the year, but the transaction order does matter.<\/li>\n<li>These instructions assume you&#8217;re trading on capital account, not on income account.<\/li>\n<li>A capital loss can be applied against capital gains occurring in the same year, or <a title=\"Applying Capital Losses to Previous Tax Years\" href=\"https:\/\/www.adjustedcostbase.ca\/blog\/applying-capital-losses-to-previous-tax-years\/\">the capital loss can be carried forwards or backwards<\/a>, subject to certain rules.<\/li>\n<li><a title=\"Should RRSP and TFSA Transactions be Included when Calculating ACB?\" href=\"https:\/\/www.adjustedcostbase.ca\/blog\/should-rrsp-and-tfsa-transactions-be-included-when-calculating-acb\/\">ACB and capital gains do not need to be calculated for registered accounts<\/a> such as RRSPs or TFSAs.<\/li>\n<li>Distributions in the form of dividends or interest income do not affect ACB.\u00a0 Other forms of distributions such as <a title=\"Return of Capital and How it Affects Adjusted Cost Base\" href=\"https:\/\/www.adjustedcostbase.ca\/blog\/return-of-capital-and-how-it-affects-adjusted-cost-base\/\">return of capital<\/a> do have an affect on ACB.\u00a0 If any kind of distribution is reinvested, this is equivalent to buying more shares and ACB should be increased accordingly.<\/li>\n<li><a title=\"Tracking Adjusted Cost Base with Multiple Brokerage Accounts\" href=\"https:\/\/www.adjustedcostbase.ca\/blog\/tracking-adjusted-cost-base-with-multiple-brokerage-accounts\/\">If you own the same security in multiple accounts, ACB must be calculated jointly.<\/a><\/li>\n<li>Capital losses may be subject to <a title=\"What Is the Superficial Loss Rule?\" href=\"https:\/\/www.adjustedcostbase.ca\/blog\/what-is-the-superficial-loss-rule\/\">the superficial loss rule<\/a>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Canada Revenue Agency (CRA) requires, in most cases, that taxes be paid on capital gains for all property including investments such as stocks, bonds, mutual funds, and exchange-traded funds. In the simplest form, a capital gain is equal to the proceeds received when selling a property, minus the original cost of the property. As [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-fundamentals-of-acb"],"_links":{"self":[{"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":37,"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":1176,"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/posts\/289\/revisions\/1176"}],"wp:attachment":[{"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.adjustedcostbase.ca\/blog\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}