Capital Gains Tax with Multiple 'buy' Transactions per Stock (U.S.)
From 26 CFR 1.1012(c)(1)i): ... if a taxpayer sells or transfers shares of stock in a corporation that the taxpayer purchased or acquired on different dates or at different prices and the taxpayer does not adequately identify the lot from which the stock is sold or transferred, the stock sold or transferred is charged against the earliest lot the taxpayer purchased or acquired to determine the basis and holding period of the stock. From 26 CFR 1.1012(c)(3): (i) Where the stock is left in the custody of a broker or other agent, an adequate identification is made if—   (a) At the time of the sale or transfer, the taxpayer specifies to such broker or other agent having custody of the stock the particular stock to be sold or transferred, and ... So if you don't specify, the first share bought (for $100) is the one sold, and you have a capital gain of $800. But you can specify to the broker if you would rather sell the stock bought later (and thus have a lower gain). This can either be done for the individual sale (no later than the settlement date of the trade), or via standing order: 26 CFR 1.1012(c)(8) ... A standing order or instruction for the specific identification of stock is treated as an adequate identification made at the time of sale, transfer, delivery, or distribution. "According to the following article the answer is ""first-in, first-out"": http://smallbusiness.chron.com/calculate-cost-basis-stock-multiple-purchases-21588.html According to the following article the last answer was just one option an investor can choose: https://www.usaa.com/inet/pages/advice-investing-costbasis?akredirect=true"
"This answer is about the USA. Each time you sell a security (a stock or a bond) or some other asset, you are expected to pay tax on the net gain. It doesn't matter whether you use a broker or mutual fund to make the sale. You still owe the tax. Net capital gain is defined this way: Gross sale prices less (broker fees for selling + cost of buying the asset) The cost of buying the asset is called the ""basis price.""  You, or your broker, needs to keep track of the basis price for each share. This is easy when you're just getting started investing. It stays easy if you're careful about your record keeping.  You owe the capital gains tax whenever you sell an asset, whether or not you reinvest the proceeds in something else. If your capital gains are modest, you can pay all the taxes at the end of the year. If they are larger -- for example if they exceed your wage earnings -- you should pay quarterly estimated tax. The tax authorities ding you for a penalty if you wait to pay five- or six-figure tax bills without paying quarterly estimates.  You pay NET capital gains tax. If one asset loses money and another makes money, you pay on your gains minus your losses. If you have more losses than gains in a particular year, you can carry forward up to $3,000 (I think). You can't carry forward tens of thousands in capital losses.  Long term and short term gains are treated separately. IRS Schedule B has places to plug in all those numbers, and the tax programs (Turbo etc) do too. Dividend payments are also taxable when they are paid. Those aren't capital gains. They go on Schedule D along with interest payments. The same is true for a mutual fund. If the fund has Ford shares in it, and Ford pays $0.70 per share in March, that's a dividend payment. If the fund managers decide to sell Ford and buy Tesla in June,  the selling of Ford shares will be a cap-gains taxable event for you.  The good news: the mutual fund managers send you a statement sometime in February or March of each year telling what you should put on your tax forms.  This is great. They add it all up for you. They give you a nice consolidated tax statement covering everything: dividends, their buying and selling activity on your behalf, and any selling they did when you withdrew money from the fund for any purpose.   Some investment accounts like 401(k) accounts are tax free. You don't pay any tax on those accounts -- capital gains, dividends, interest -- until you withdraw the money to live on after you retire. Then that money is taxed as if it were wage income. If you want an easy and fairly reliable way to invest, and don't want to do a lot of tax-form scrambling, choose a couple of different mutual funds, put money into them, and leave it there. They'll send you consolidated tax statements once a year. Download them into your tax program and you're done. You mentioned ""riding out bad times in cash.""  No, no, NOT a good idea. That investment strategy almost guarantees you will sell when the market is going down and buy when it's going up. That's ""sell low, buy high."" It's a loser. Not even Warren Buffett can call the top of the market and the bottom.  Ned Johnson (Fidelity's founder) DEFINITELY can't." "This question and your other one indicate you're a bit unclear on how capital gains taxes work, so here's the deal: you buy an asset (like shares of stock or a mutual fund).  You later sell it for more than you bought it for.  You pay taxes on your profit: the difference between what you sold it for and what you bought it for.  What matters is not the amount of money you ""withdraw"", but the prices at which assets are bought and sold. In fact, often you will be able to choose which individual shares you sell, which means you have some control over the tax you pay.  For a simple example, suppose you buy 10 shares of stock for $100 each in January (an investment of $1000); we'll call these the ""early"" shares.  The stock goes up to $200 in July, and you buy 10 more shares (investing an additional $2000); we'll call these the ""late"" shares.  Then the stock drops to $150.  Suppose you want $1500 in cash, so you are going to sell 10 shares. The 10 early shares you bought have increased in value, because you bought then for $100 but can now sell them for $150.  The 10 late shares have decreased in value, because you bought them for $200 but can now only sell them for $150.  If you choose to sell the early shares, you will have a capital gain of $500 ($1500 sale price minus $1000 purchase price), on which you may owe taxes.  If you sell the late shares, you will have a capital loss of $500 ($1500 sale price minus $2000 purchase price is -$500), which you can potentially use to reduce your taxes.  Or you could sell 5 of each and have no gain or loss (selling five early shares for $150 gives you a gain of $250, but selling five late shares for $150 gives you a loss of $250, and they cancel out). The point of all this is to say that the tax is not determined by the amount of cash you get, but by the difference between the sale price and the price you purchased for (known as the ""cost basis""), and this in turn depends on which specific assets you sell.  It is not enough to know the total amount you invested and the total gain.  You need to know the specific cost basis (i.e., original purchase price) of the specific shares you're selling.  (This is also the answer to your question about long-term versus short-term gains.  It doesn't matter how much money you make on the sale.  What matters is how long you hold the asset before selling it.) That said, many brokers will automatically sell your shares in a certain order unless you tell them otherwise (and some won't let you tell them otherwise).  Often they will use the ""first in, first out"" rule, which means they will always sell the earliest-purchased shares first. To finally get to your specific question about Betterment, they have a page here that says they use a different method.  Essentially, they try to sell your shares in a way that minimizes taxes.  They do this by first selling shares that have a loss, and only then selling shares that have a gain.  This basically means that if you want to cash out $X, and it is possible to do it in a way that incurs no tax liability, they will do that. What gets me very confused is if I continue to invest random amounts of money each month using Betterment, then I need to withdraw some cash, what are the tax implications.  As my long answer above should indicate, there is no simple answer to this.  The answer is ""it depends"".  It depends on exactly when you bought the shares, exactly how much you paid for them, exactly when and how much the price rose or fell, and exactly how much you sell them for.  Betterment is more or less saying ""Don't worry about any of this, trust us, we will handle everything so that your tax is minimized."" A final note: if you really do want to track the details of your cost basis, Betterment may not be for you, because it is an automated platform that may do a lot of individual trades that a human wouldn't do, and that can make tracking the cost basis yourself very difficult.  Almost the whole point of something like Betterment is that you are supposed to give them your money and forget about these details." "Are these all of the taxes or is there any additional taxes over these? Turn-over tax is not for retail investors. Other taxes are paid by the broker as part of transaction and one need not worry too much about it. Is there any ""Income tax"" to be paid for shares bought/holding shares? No for just buying and holding. However if you buy and sell; there would be a capital gain or loss. In stocks, if you hold a security for less than 1 year and sell it; it is classified as short term capital gain and taxes at special rate of 15%. The loss can be adjusted against any other short term gain. If held for more than year it is long term capital gain. For stock market, the tax is zero, you can't adjust long term losses in stock markets. Will the money received from selling shares fall under ""Taxable money for FY Income tax""? Only the gain [or loss] will be tread as income not the complete sale value. To calculate gain, one need to arrive a purchase price which is price of stock + Brokerage + STT + all other taxes. Similar the sale price will be Sales of stock - Brokerage - STT - all other taxes. The difference is the gain.  Will the ""Dividend/Bonus/Buy-back"" money fall under taxable category? Dividend is tax free to individual as the company has already paid dividend distribution tax. Bonus is tax free event as it does not create any additional value. Buy-Back is treated as sale of shares if you have participated. Will the share-holder pay ""Dividend Distribution Tax""? Paid by the company. What is ""Capital Gains""? Profit or loss of buying and selling a particular security." "First, do you get charged a commission or other fee for reinvesting?   Second, why would capital gains and dividends be grouped together? If the broker charges you for that run away. As Joe explained, it is done as a courtesy. Doesn't this mean if I sell the stock, the profit will be used to buy   that stock right back? No, this is only the capital gains distributions of funds. Lastly, there are two additional checkbox options I was hoping   somebody could explain: ""All equity positions currently held in this   account"" and ""Future equity purchases, transfers, and deposits to this   account"". ""All equity positions"" means your selection will be valid for all the positions you already have. ""Future positions"" means it will only affect future positions, not the ones you already have. For example: FOLLOW-UP: Looking around, some people suggest not doing this for   taxable accounts because it complicates cost basis reporting. Is this   a valid concern? Doesn't the brokerage handle that and send you the   information when you sell the stock? Yes, because you end up with tons of positions and you need to track the cost basis for each. Brokers are required to report cost-basis on 1099-B now, so its less of a problem, but before 2011 you'd have 10's of positions each year (if you have a monthly dividend, for example) each with different cost basis, and you'd usually sell them all at once. Go figure the gain. So the new 1099-B reporting regulations help a little on this, but it only kicks in for everything starting of 2013 IIRC. Fortunately, for some investments (mutual funds, mainly) you may chose averaging, but it has drawbacks as well." The thing you get wrong is that you think the LLC doesn't pay taxes on gains when it sells assets.  It does. In fact, in many countries LLC are considered separate entities for tax properties and you have double taxation - the LLC pays its own taxes, and then when you withdraw the money from the LLC to your own account (i.e.: take dividends) - you pay income tax on the withdrawal again. Corporate entities usually do not have preferential tax treatment for investments. In the US, LLC is a pass-though entity (unless explicitly chosen to be taxed as a corporation, and then the above scenario happens). Pass-through entities (LLCs and partnerships) don't pay taxes, but instead report the gains to the owners, which then pay taxes as if the transaction was their personal one. So if you're in the US - investing under LLC would have no effect whatsoever on your taxes, or adverse effect if you chose to treat it as a corporation. In any case, investing in stocks is not a deductible expense, and as such doesn't reduce profits. The question seems to be from the point of view actual sales and not its impact on one's taxation. In case you just want to sell, why brokers will respond differently each times. Either there may be issues with ownership and/or the company whose shares it is? In case you feel that the issues lies with brok Yes. As long as the stock is in a taxable account (i.e. not a tax deferred retirement account) you'll pay gain on the profit regardless of subsequent purchases.  If the sale is a loss, however, you'll risk delaying the claim for the loss if you repurchase identical shares within 30 days of that sale. This is called a wash sale. This answer fills in some of the details you are unsure about, since I'm further along than you. I bought the ESPP shares in 2012.  I didn't sell immediately, but in 2015, so I qualify for the long-term capital gains rate. Here's how it was reported: The 15% discount was reported on a W2 as  it was also mentioned twice in the info box (not all of my W2's come with one of these) but also  This showed the sale trade, with my cost basis as the discounted price of $5000. And for interests sake, I also got the following in 2012: WARNING! This means that just going ahead and entering the numbers means you will be taxed twice! once as income and once as capital gains. I only noticed this was happening because I no longer worked for the company, so this W2 only had this one item on it. This is another example of the US tax system baffling me with its blend of obsessive compulsive need for documentation coupled with inexplicably missing information that's critical to sensible accounting. The 1099 documents must (says the IRS since 2015) show the basis value as the award price (your discounted price).   So reading the form 8949: Note: If you checked Box D above but the basis reported to the IRS was   incorrect, enter in column (e) the basis as reported to the IRS, and   enter an adjustment in column (g) to correct the basis. We discover the number is incorrect and must adjust.  The actual value you need to adjust it by may be reported on your 1099, but also may not (I have examples of both). I calculated the required adjustment by looking at the W2, as detailed above. I gleaned this information from the following documents provided by my stock management company (you should the tax resources section of your provider): "You should check with your broker for details, but you can generally specify which ""lot"" you are selling.  where I've seen it, that's done by concurrently sending a ""letter of instruction"" documenting your choice of lot concurrent with the sale, but different brokers may handle this differently.  I would think this should work for the case that you describe. (In addition, the default rule used by your broker is ""probably"" first-in-first-out, which will do what you want here.) Note that this may come into play even in a margin account to the extent that you might want to specify a lot in order to obtain (or set yourself up for later benefit of) favorable tax treatment under the long-term capital gains rules" A rough estimate of the money you'd need to take a position in a single stock would be: In the case of your Walmart example, the current share price is 76.39, so assuming your commission is $7, and you'd like to buy, say, 3 shares, then it would cost approximately (76.39 * 3) + 7 = $236.17. Remember that the quoted price usually refers to 100-share lots, and your broker may charge you a higher commission or other fees to purchase an odd lot (less than 100 shares, usually).  I say that the equation above gives an approximate minimum because  However, I second the comments of others that if you're looking to invest a small amount in the stock market, a low cost mutual fund or ETF, specifically an index fund, is a safer and potentially cheaper option than purchasing individual stocks. If you have held the stocks longer than a year, then there is no tax apart from the STT that is already deducted when you sell the shares.  If you have held the stock for less than a year, you would have to pay short term capital gains at the rate of 15% on the profit. Edit: If you buy different shares from the total amount or profits, it makes no difference to taxes. To try to answer the three explicit questions: Every share of stock is treated proportionately: each share is assigned the same dollar amount of investment (1/176th part of the contribution in the example), and has the same discount amount (15% of $20 or $25, depending on when you sell, usually). So if you immediately sell 120 shares at $25, you have taxable income on the gain for those shares (120*($25-$17)). Either selling immediately or holding for the long term period (12-18 mo) can be advantageous, just in different ways.   Selling immediately avoids a risk of a decline in the price of the stock, and allows you to invest elsewhere and earn income on the proceeds for the next 12-18 months that you would not otherwise have had.  The downside is that all of your gain ($25-$17 per share) is taxed as ordinary income.   Holding for the full period is advantageous in that only the discount (15% of $20 or $25) will be taxed as ordinary income and the rest of the gain (sell price minus $20 or $25) will be taxed at long-term capital gain tax rates, which generally are lower than ordinary rates (all taxes are due in the year you do sell).  The catch is you will sell at different price, higher or lower, and thus have a risk of loss (or gain). You will never be (Federally) double taxed in any scenario.  The $3000 you put in will not be taxed after all is sold, as it is a return of your capital investment.  All money you receive in excess of the $3000 will be taxed, in all scenarios, just potentially at different rates, ordinary or capital gain.  (All this ignores AMT considerations, which you likely are not subject to.) The typical deal is you can put 10% of your gross pay into the ESPP. The purchase will occur on the last deposit date, usually a 6 month period, at a 15% discount to the market price.  So, the math is something like this: Your return if sold the day it's purchased is not 15%, it's 100/85 or 17.6%. Minor nitpick on my part, I suppose.  Also the return is not a 6 month return, as the weekly or bi-weekly deductions are the average between the oldest (6 mo) and the most recent (uh, zero time, maybe a week.) This is closer to 3 months. The annualized rate is actually pretty meaningless since you don't have 4 opportunities to achieve this return, it's important only if the cash flow hit causes you to borrow to support the ESPP purchases. The risk is whether the stock drops the 15% before you can execute the sell to take advantage of the gain.  Of course the return is gross, you need to net for taxes.  Edit to respond to comment below - When I said meaningless, I meant that you can't take the 17.6%, annualize it to 91.2% per year and think your $1000 will compound to $1912. It's as meaningless as when an investor gets a 10% gain on a stock in one day, and (with 250 trading days per year) decides his $1000 will be worth $2 quadrillion dollars after a year. The 17.6% is significant in that it's available twice per year, for a true 38% return over a year, but if borrowing to help the cash flow, that rate is really over 3 months. For reporting purposes, I would treat the purchase and sale of gold like a purchase and sale of a stock. The place to do so is Schedule D. (And if it's the wrong form, but you reported it, there is might not be a penalty, whereas there is a penalty for NOT reporting.) The long term gain would be at capital gains rates. The short term gain would be at ordinary income rates. And if you have two coins bought at two different times, you get to choose which one to report (as long as you report the OTHER one when you sell the second coin). "The issues of trading with unsettled funds are usually restricted to cash accounts.  With margin, I've never personally heard of a rule that will catch you in this scenario.  You won't be able to withdraw funds that are tied up in unsettled positions until the positions settle.  You should be able to trade those funds.  I've never heard of a broker charging margin interest on unsettled funds, but that doesn't mean there isn't a broker somewhere that does. Brokers are allowed to impose their own restrictions, however, since margin is basically offering you a line of credit.  You should check to see if your broker has more restrictive rules. I'd guess that you may have heard about restrictions that apply to cash accounts and think they may also apply to margin accounts.  If that's the case and you want to learn more about the rules generally, try searching for these terms: You should be able to find a lot of clear resources on those terms.  Here's one that's current and provides examples: https://www.fidelity.com/learning-center/trading-investing/trading/avoiding-cash-trading-violations On a margin account you avoid these issue because the margin (essentially a loan from your broker) provides a cushion / additional funds that avoid the issues.  It is possible that if you over-extend yourself that you'll get a ""margin call,"" but that seems to be different than what you're asking and maybe worth a new question if you want to know about that."