Will capital gains affect my tax bracket?
I think you're misunderstanding how tax brackets work. If you make $1 more and that bumps you into a higher bracket, only THAT particular dollar will be taxed at the higher tax bracket rate... Not your entire income.  Short term capital gains are treated as income.  Long term capital gains have a special tax rate currently. I'm not sure where you are, but in the United States capital gains are taxed at a lower rate than other types of income. On the 1040, captial gains income is separated from earned income, and income tax is calculated just on earned income. Then capital gains tax is calculated on capital gains income, and then added to income tax afterward.
No, you will (generally speaking) not see a decrease in your net earnings from crossing a tax bracket: This means that your highest marginal rate (the top bracket you fall into) only applies to the portion of your income that is in that bracket, not your total income. This helps ensure that your total tax burden does not increase measurably from crossing a tax bracket. Be aware that you can still see measurable changes in your total taxes due if increases in income make you no longer eligible for certain deductions and/or benefits that were otherwise reducing your tax burden, but this is not the same as how changes in your highest marginal rate affect your overall average tax rate. Note that when you see a rate table such as the one on efile.com's federal income tax rates page or on Wikipedia's Income tax in the United States page, the rates listed are for each segment of income, not for your overall income: In other words the 15% rate below (for 2014, filing single) only applies to the portion of your income falling between the listed numbers, not to income below it or above it: that would be calculated under the respective rates given. You can use the i1040tt tax tables to gain a sense of how this works in practice: (The linked resource is for 2014 taxes) The threshold in 2014 for the 25% rate vs 15% was $36,900. Using the linked table, if you were single and made between 36,850 and 36,900 in gross income, your tax liability before other considerations was $5,078. If you made between 36,900 and 36,950, your base tax liability was $5,088. "There is not a special rate for short-term capital gains.  Only long-term gains have a special rate.  Short-term gains are taxed at your ordinary-income rate (see here).  Hence if you're in the 25% bracket, your short-term gain would be taxed at 25%.  The IRA withdrawal, as you already mentioned, would be taxed at 25%, plus a 10% penalty, for 35% total.  Thus the bite on the IRA withdrawal is larger than that on a non-IRA withdrawal. As for the estimated tax issue, I don't think there will be a significant difference there.  The reason is that (traditional) IRA withdrawals count as ordinary taxable income (see here).  This means that, when you withdraw the funds from your IRA, you will increase your income.  If that increase pushes you too far beyond what your withholding is accounting for, then you owe estimated tax.  In other words, whether you get the money by selling stocks in a taxable account or by withdrawing them from an IRA, you still increase your taxable income, and thus potentially expose yourself to the estimated tax obligation. (In fact, there may be a difference.  As you note, you will pay tax at the capital gains rate on gains from selling in a taxable account.  But if you sell the stocks inside the IRA and withdraw, that is ordinary income.  However, since ordinary income is taxed at a higher rate than long-term capital gains, you will potentially pay more tax on the IRA withdrawal, since it will be taxed at the higher rate, if your gains are long-term rather than short term.  This is doubly true if you withdraw early, incurring the extra 10% penalty.  See this question for some more discussion of this issue.) In addition, I think you may be somewhat misunderstanding the nature of estimated tax.  The IRS will not ""ask"" you for a quarterly estimated tax when you sell stock.  The IRS does not monitor your activity and send you a bill each quarter.  They may indeed check whether your reported income jibes with info they received from your bank, etc., but they'll still do that regardless of whether you got that income by selling in a taxable account or withdrawing money from an IRA, because both of those increase your taxable income. Quarterly estimated tax is not an extra tax; it is just you paying your normal income tax over the course of the year instead of all at once.  If your withholdings will not cover enough of your tax liability, you must figure that out yourself and pay the estimated tax (see here); if you don't do so, you may be assessed a penalty.  It doesn't matter how you got the money; if your taxable income is too high relative to your withheld tax, then you have to pay the estimated tax.  Typically tax will be withheld from your IRA distribution, but if it's not withheld, you'll still owe it as estimated tax." Unless your investments are held within a special tax-free account, then every sale transaction is a taxable event, meaning a gain or loss (capital gain/loss or income gain/loss, depending on various circumstances) is calculated at that moment in time. Gains may also accrue on unrealized amounts at year-end, for specific items [in general in the US, gains do not accrue at year-end for most things]. Moving cash that you have received from selling investments, from your brokerage account to your checking account, has no impact from a tax perspective. However, you might have to pay taxes on capital gains if these stocks were acquired during your prior residency. Here's how capital gains are totaled: Long and Short Term. Capital gains and losses are either long-term or   short-term. It depends on how long the taxpayer holds the property. If   the taxpayer holds it for one year or less, the gain or loss is   short-term. Net Capital Gain.  If a taxpayer’s long-term gains are more than their   long-term losses, the difference between the two is a net long-term   capital gain. If the net long-term capital gain is more than the net   short-term capital loss, the taxpayer has a net capital gain. So your net long-term gains (from all investments, through all brokers) are offset by any net short-term loss.  Short term gains are taxed separately at a higher rate. I'm trying to avoid realizing a long term capital gain, but at the same time trade the stock. If you close in the next year, one of two things will happen - either the stock will go down, and you'll have short-term gains on the short, or the stock will go up, and you'll have short-term losses on the short that will offset the gains on the stock.  So I don;t see how it reduces your tax liability.  At best it defers it. You should get a 1099-MISC for the $5000 you got.  And your broker should send you a 1099-B for the $5500 sale of Google stock. These are two totally separate things as far as the US IRS is concerned. 1) You made $5000 in wages. You will pay income tax on this as well as FICA and other state and local taxes. 2) You will report that you paid $5000 for stock, and sold it for $5500 without holding it for one year. Since this was short term, you will pay tax on the $500 in income you made. These numbers will go on different parts of your tax form.  Essentially in your case, you'll have to pay regular income tax rates on the whole $5500, but that's only because short term capital gains are treated as income.  There's always the possibility that could change (unlikely).  It also helps to think of them separately because if you held the stock for a year, you would pay different tax on that $500.  Regardless, you report them in different ways on your taxes. "As Dilip said, if you want actual concrete, based in tax law, answers, please add the country (and if applicable, state) where you pay income tax. Also, knowing what tax bracket you're in would help as well, although I certainly understand if you're not comfortable sharing that. So, assuming the US... If you're in the 10% or 15% tax bracket, then you're already not paying any federal tax on the $3k long term gain, so purposely taking losses is pointless, and given that there's probably a cost to taking the loss (commission, SEC fee), you'd be losing money by doing so. Also, you won't be able to buy back the loser for 31 days without having the loss postponed due to the wash sale that would result. State tax is another matter, but (going by the table in this article), even using the highest low end tax rate (Tennessee at 6%), the $50 loss would only save you $3, which is probably less than the commission to sell the loser, so again you'd be losing money. And if you're in a state with no state income tax, then the loss wouldn't save you anything on taxes at the state level, but of course you'll still be paying to be able to take the loss. On the high end, you'd be saving 20% federal tax and 13.3% state tax (using the highest high end tax state, California, and ignoring (because I don't know :-) ) whether they tax long-term capital gains at the same rate as regular income or not), you'd be saving $50 * (20% + 13.3%) = $50 * 33.3% = $16.65. So for taxes, you're looking at saving between nothing and $16.65. And then you have to subtract from that the cost to achieve the loss, so even on the high end (which means (assuming a single filer)) you're making >$1 million), you're only saving about $10, and you're probably actually losing money. So I personally don't think taking a $50 loss to try to decrease taxes makes sense. However, if you really meant $500 or $5000, then it might (although if you're in the 10-15% brackets in a no income tax state, even then it wouldn't). So the answer to your final question is, ""It depends."" The only way to say for sure is, based on the country and state you're in, calculate what it will save you (if anything). As a general rule, you want to avoid letting the tax tail wag the dog. That is, your financial goal should be to end up with the most money, not to pay the least taxes. So while looking at the tax consequences of a transaction is a good idea, don't look at just the tax consequences, look at the consequences for your overall net worth." Capital gains and losses offset each other first, then your net gain is taxed at the applicable rate. If you have a net loss, you can offset your other income by up to $3,000. In your example, you have no net-gain or loss, so no tax implications from your activity. Tax brackets refer to the range of taxable within which you fall. An income tax bracket usually refers to federal or state tax, not the combined rate. I have put here the tax brackets for 2016 for IRS and State of California.  https://www.irs.com/articles/2016-federal-tax-rates-personal-exemptions-and-standard-deductions  https://www.ftb.ca.gov/forms/2016-california-tax-rates-and-exemptions.shtml According to those, a taxable income of 100,000USD would fall in the 28% bracket for the IRS and 9.30% for State of California. The combined rate is therefore 37.3%. However, this does not mean you would pay 37,300USD. First of all, your applicable tax rate applies only for each dollar in your tax bracket (e.g. 28% * 8,849USD for IRS). Therefore, to calculate your combined taxes you would need to do:  Therefore, your effective tax rate would be much lower than the combined tax rate of 37.3%. Now do note that this is an example to illustrate tax brackets and is nowhere near the amount of taxes you would be required to pay because of various credits and deductions that you would be able to benefit from. Edit: As suggested in the comments, a note on marginal tax rate (referred to here as combined tax rate). This is the rate of taxes paid on an additional dollar of income. Here, every additional dollar of income would be taxed at 37.3%, leaving you with 62.7 cents. Lets just get to the point...Ordinary income (gains) earned from S-Corp operations (i.e. income earned after all expenses for providing services or selling products) is passed through to the owners/shareholders and taxed at the owner's personal tax rate. Separately, if an S-Corp earns capital gains (i.e. the S-Corp buys and sells stock, earns dividends from investments, etc), those gains are passed through to the owners and taxed at a capital gains rate Capital gains are not the same as ordinary income (gains). Don't get the two confused, they are as different for S-Corp taxation as they are for personal taxation. In some cases an exception occurs, but only when the S-Corp was formally a C-Corp and the C-Corp had non-distributed earnings or losses. This is a separate issue whereas the undistributed C-Corp gains/losses are treated differently than the S-Corp gains/losses. It takes years of college coursework and work experience to grasp the vast arena of tax. It should not be so complex, but it is this complex. It is not within the scope of the non-tax professional to make sense of this stuff. The CPA exams, although very difficult and thorough, only scrape the surface of tax and accounting. I hope this provides some perspective on any questions regarding business tax for S-Corps and any other entity type. Hire a good CPA... if you can find one. "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." Your tax bracket is determined by your total taxable income in a given year, where money drawn from a traditional-style deferred-tax 401k or IRA is taxable income. (Money drawn from a Roth account was taxed before deposit and is not taxed when withdrawn after the relevant date.) Your recent salary history has no effect on this, except salary in the same year -- and there is no advantage to be gained by taking a deliberate pay cut for its own sake. Capital losses from the sale of stocks can be used to offset capital gains from the sale of a house, assuming that house was a rental property the whole time.  If it was your principal residence, the capital gains are not taxed.  If you used it as both a rental and a principal residence, then it gets more complicated: http://www.cra-arc.gc.ca/tx/ndvdls/tpcs/ncm-tx/rtrn/cmpltng/rprtng-ncm/lns101-170/127/rsdnc/menu-eng.html You don't have to wait.  If you sell your shares now, your gain can be considered a capital gain for income tax purposes. Unlike in the United States, Canada does not distinguish between short-term vs. long-term gains where you'd pay different rates on each type of gain.  Whether you buy and sell a stock within minutes or buy and sell over years, any gain you make on a stock can generally be considered a capital gain. I said generally because there is an exception:  If you are deemed by CRA to be trading professionally -- that is, if you make a living buying and selling stocks frequently -- then you could be considered doing day trading as a business and have your gains instead taxed as regular income (but you'd also be able to claim additional deductions.)  Anyway, as long as your primary source of income isn't from trading, this isn't likely to be a problem. Here are some good articles on these subjects: When you are investing for 40 years, you will have taxable events before retirement.  You'll need to pay tax along the way, which will eat away at your gains. For example, in your taxable account, any dividends and capital gain distributions will need taxes paid each year.  In your 401(k) or IRA, these are not taxable until retirement. In addition, what happens if you want to change investments before retirement?  In your taxable account, taxes on the capital gains will be due at that time, but in a retirement account, you can change investments anytime you like without having to pay taxes early. Finally, when you do pull money out of your 401(k) at retirement, it will be taxed at whatever your tax rate is at retirement.  After you retire, your income will probably be lower than when you were working, so your tax rate might be less.