Could capital gains from a stock sale impact my IRA eligibility?
Yes, eligibility for contributing to a Roth IRA is determined by your Modified Adjusted Gross Income (MAGI) which is based on your Adjusted Gross Income (AGI). Now, AGI includes the net capital gains from your transactions and MAGI adds back in things that were subtracted off (e.g. tuition deductions, foreign earned income exclusion) in arriving at the AGI. There is a worksheet in Publication 590 that has the details. You are always entitled to contribute to a Traditional IRA. The MAGI affects how much of your contribution is tax-deductible on that year's tax return, but not your eligibility to contribute.  Both the above paragraphs assume that you have enough compensation (wages, salary, self-employment income) to contribute to an IRA: the contribution limit is $5500 or total compensation, whichever is smaller. (If you earned only $2K as wages, you can contribute all of it; not just your take-home pay which is what is left after Social Security and Medicare taxes, Federal taxes etc have been withheld from that $2K). If your entire income is from capital gains and stock dividends, you cannot contribute to any kind of IRA at all. Yes. Look at form 1040 AGI is line 37, and it comes well after you report your schedule D cap gains.  I read this question as meaning you wish to contribute to a traditional IRA pretax. There is no income limit to contribute to an IRA and not take the deduction.
"IRA contribution must be from your earned income in the sense that you cannot contribute to IRA more than you have in earned income. If all your income is capital gains - you cannot contribute anything to IRA. Once you're within the income limit restriction, it doesn't matter what other money you have, because as you said - once in your account, its all just money. But what you're describing is basically ""I deposit $850 from my salary into an IRA and then go pay for my gas with the $850 I have from the capital gains"", so you're not paying any less taxes here. If it makes you feel any better, you can describe it to yourself the way you did. It doesn't really matter." Nobody here really answered your question.  The custodian of the 401k determines what funds and investment options are available within that 401k.  So if they're eliminating company stock as an option then they can absolutely make you sell out of it.    You may be able to do an in service rollover and transfer your funds to an individual ira but that's not particularly common among 401k administrators.   Aside from that I'd ask why do you want to hold company stock anyway?  Generally I'd advise against this as its imposing a ton of risk on your financial future.  If your company tanks you're out of a job, which sucks.  But it sucks even more if your company tanks and your 401k loses a ton of value at the same time.   Edit: I see you asked who benefits as well.  It may just be a situation of no benefit at all.  Perhaps the plan didn't have enough people investing in company stock to make the option cost effective.  Maybe the administrator decided that allowing people to take on that amount of risk was not in their best interest(it's not).  Could be a ton of reasons but it's unlikely the company did so out of greed.  There isn't a lot of financial benefit for them there. Yes. Of course, you still need to take into the account the trade costs (fees paid to the broker), these are not going anywhere. Basically what it means is that you don't have to worry about long/short holding period within the IRA, they're all the same. It doesn't mean that long term trading is better or worse to have outside the scope of IRA, it just means that the concept doesn't exist inside. "First of all, since you're 16 - you will not invest in anything. You cannot, you're a minor. You cannot enter contracts, and as such - you cannot transact in property. Your bank accounts are all UGMA accounts. I.e.: your guardian (or someone else who's the trustee on the account) will be the one transacting, not you. You can ask them to do trades, but they don't have to. They must make decisions in your best interest, which trades may not necessarily be. If however they decide to make trades, or earn interest, or make any other decision that results in gains - these are your gains, and you will be taxed on them. The way taxes work is that you're taxed on income. You're free to do with it whatever you want, but you're taxed on it. So if you realized gains by selling stocks, and reinvested them - you had income (the gains) which you did with whatever you felt like (reinvested). The taxman doesn't care what you did with the gains, the taxman cares that you had them. For losses it is a bit more complicated, and while you can deduct losses - there are limitations on how much you can deduct, and some losses cannot be deducted at all when realized (like wash sale losses or passive activity losses). When you have stock transactions, you will probably need to file a tax return reporting the transactions and your gains/losses on them. You may end up not paying any tax at all, but since the broker is reporting the transactions - you should too, if only to avoid IRS asking why you didn't. This, again, should be done by your guardian, since you personally cannot legally sign documents. You asked if your gains can affect your parents' taxes. Not exactly - your parents' taxes can affect you. This is called ""Kiddie Tax"" (unofficially of course). You may want read about it and take it into account when discussing your investments with your guardian/parents. If kiddie tax provisions apply to you - your parents should probably discuss it with their tax adviser." "Summary of accepted answer: Your ""loss"" will not count as a loss (to the IRS).  Which means no tax deduction for a ""short-term capital loss"" (on that sale). Instead, the IRS simply pretends like you had paid less for the stock to begin with." Capital gain distribution is not capital gain on sale of stock. If you have stock sales (Schedule D) you should be filing 1040, not 1040A. Capital gain distributions are distributions from mutual funds/ETFs that are attributed to capital gains of the funds (you may not have actually received the distribution, but you still may have gain attributed to you). It is reported on 1099-DIV, and if it is 0 - then you don't have any. If you sold a stock, your broker should have given you 1099-B (which is not the same as 1099-DIV, but may be consolidated by your broker into one large PDF and not provided separately). On 1099-B the sales proceeds are recorded, and if you purchased the stock after 2011 - the cost basis is also recorded. The difference between the proceeds and the cost basis is your gain (or loss, if it is negative). Fees are added to cost basis. The sentence you quoted does not apply in the case where you sell the stock at a loss. In that case, you recognize zero ordinary income, and a capital loss (opposite of a gain) for the loss. Reference: http://efs.fidelity.com/support/sps/article/article2.html "Generally if you are using FIFO (first in, first out) accounting, you will need to match the transactions based on the number of shares. In your example, at the beginning of day 6, you had two lots of shares, 100 @ 50 and 10 @ 52.  On that day you sold 50 shares, and using FIFO, you sold 50 shares of the first lot.  This leaves you with 50 @ 50 and 10 @ 52, and a taxable capital gain on the 50 shares you sold. Note that commissions incurred buying the shares increase your basis, and commissions incurred selling the shares decrease your proceeds.  So if you spent $10 per trade, your basis on the 100 @ 50 lot was $5010, and the proceeds on your 50 @ 60 sale were $2990.  In this example you sold half of the lot, so your basis for the sale was half of $5010 or $2505, so your capital gain is $2990 - 2505 = $485. The sales you describe are also ""wash sales"", in that you sold stock and bought back an equivalent stock within 30 days.  Generally this is only relevant if one of the sales was at a loss but you will need to account for this in your code.  You can look up the definition of wash sale, it starts to get complex. If you are writing code to handle this in any generic situation you will also have to handle stock splits, spin-offs, mergers, etc. which change the number of shares you own and their cost basis.  I have implemented this myself and I have written about 25-30 custom routines, one for each kind of transaction that I've encountered.  The structure of these deals is limited only by the imagination of investment bankers so I think it is impossible to write a single generic algorithm that handles them all, instead I have a framework that I update each quarter as new transactions occur." "For example, if I have an income of $100,000 from my job and I also   realize a $350,000 in long-term capital gains from a stock sale, will   I pay 20% on the $350K or 15%? You'll pay 20% assuming filing single and no major offsets to taxable income. Capital gains count towards your income for determining tax bracket. They're on line 13 of the 1040 which is in the ""income"" section and aren't adjusted out/excluded from your taxable income, but since they are taxed at a different rate make sure to follow the instructions for line 44 when calculating your tax due." RSU are taxed when vested, based on their value at that point, as salary. If you don't sell to cover, you need to pay the taxes, if you sell to cover - you sell the portion that is worth the taxes (brokers do that automatically, and remit the taxes on your behalf). Once paid your taxes, it becomes a regular stock position - short term gains if you sell within a year after vesting, long term if you wait for more than a year. The consideration whether to wait or sell is as with any other investment, them being previously restricted has no meaning. You calculate the gain for each position, so the fact that you have more than one position is not a problem. The RSU income and the taxes paid will appear on your W2, so when the broker reports proceeds, you can show the basis and thus calculate the gain. See this question for some useful answers on how to report the RSU sale on your taxes. You are not allowed to pick and choose what years to take a loss once the stock/fund is sold.  While I realize it might be too late for you to do anything now, in the future if members should read this, they might consider doing a Roth conversion during that year they will have $3000 in losses. This way they will show some income that can be offset by that loss, effectively getting a free conversion to the Roth. Purchasing stock doesn't affect your immediate taxes any more than purchasing anything else, unless you purchase it through a traditional 401k or some other pre-tax vehicle. Selling stock has tax effects; that's when you have a gain or loss to report. If you hold stock in a traditional IRA and sell a covered call against that stock, the premium received for writing that call belongs to the IRA just as would any other gain, dividend, or interest.  It is not a contribution but simply adds to the balance in the IRA.  The nature of the gain (capital or ordinary) is not relevant since all parts of the IRA balance are treated the same when funds are (eventually) withdrawn. Post-tax (i.e. non-retirement account) investing is nothing to ignore. You don't mention a spouse, so for a start, you still have the $5500 to put in an IRA.  The remaining investment funds will earn dividends, if any, at a tax preferred rate, and then the gain on sale will be taxed at 15% if the code doesn't change again. The gains accumulate tax deferred, and you control the timing of the sale. With a 401(k) all withdrawal are taxable as income. In your case, just the gain is taxed at a potential long term cap gain rate. Hopefully the new job pays more than the old one and the loss of 401(k) is compensated. Withdrawals from a traditional 401(k) plan are always treated as cash income and the taxable portion is taxed at ordinary income tax rates, even if the money was held in stocks within the 401(k) plan and the amount withdrawn is equal to whatever capital gains you made by selling the stock within the 401(k) plan. If your plan permits you to take the distribution as stock shares (transferred to your taxable brokerage account), then, for tax purposes, it is treated as if you took a distribution of cash equal to the market price of the shares as of the day of the distribution and promptly bought the same number of shares in your brokerage account.  And yes, if the 401(k) plan assets in your ex-employer's plan consists solely of pretax contributions and the earnings thereon, then the entire distribution is ordinary taxable income regardless of whether you sold the stock within the 401(k) plan or took a distribution of stock from the plan and promptly (or after a few days) sold it. The capital gains or losses (if any) from such a sale are, of course, outside the 401(k) plan and taxable accordingly. Finally, the 10% penalty for premature withdrawal from a traditional 401(k) will also apply if you are not 59.5 years of age or older (or maybe 55 since you are separated from service), and it will be computed on the entire distribution.