Separate investment gain from transaction costs
Global · Year-independent / dated user inputs · Rules reviewed 2026-11-12 · Rule revision 2026-11-12.1
Investors reviewing one completed or planned trade.
Independently checked examples · These fixed case studies do not change with your inputs above.
Inputs and preparation
Use the same quote currency for buy/sell prices and enter fractional or whole units with actual trading fee rates.
Use buy and sell prices for the same asset and the same currency, then enter the quantity actually sold. Do not enter a whole portfolio balance as the unit price. A partial-sale tax lot or a foreign-exchange gain requires a separate cost-basis calculation; this comparison does not reconstruct transaction history.
Formula
Profit = sell price × quantity × (1 − sell fee%) − buy price × quantity × (1 + buy fee%). ROI = profit / purchase outlay.
Worked examples and comparisons
Trade outcome after both trading fees
USD; buy price 100, quantity 10; fee percentages are entered separately for purchase and sale. No tax or FX conversion in this table.
| Sale price / buy and sell fees | Purchase outlay | Net sale proceeds | Profit / loss | ROI |
|---|---|---|---|---|
| USD 120.00 / 0% + 0% | USD 1,000.00 | USD 1,200.00 | USD 200.00 | 20.00% |
| USD 120.00 / 1% + 1% | USD 1,010.00 | USD 1,188.00 | USD 178.00 | 17.62% |
| USD 90.00 / 1% + 1% | USD 1,010.00 | USD 891.00 | USD -119.00 | -11.78% |
| USD 100.00 / 1% + 1% | USD 1,010.00 | USD 990.00 | USD -20.00 | -1.98% |
What the comparison tells you
Buying ten units at USD 100 and selling at USD 120 yields USD 200 before fees. Adding a 1% fee at each end changes both the initial outlay and the sale proceeds. The ROI denominator is the acquisition outlay including the modeled buy fee, not the later sale value.
The unchanged-price row still produces a loss when both fees apply. The declining-price row preserves its negative result: a negative amount is an actual modeled loss rather than an instruction to sell or a prediction of recovery.
Scope and limitations
Generic realized trade model. Keep currency consistent. Annual taxes, currency movements, dividends and leverage are excluded. ROI on zero cost is undefined.
Income tax, dividend income, currency conversion and slippage are excluded. There is no country-specific annual tax schedule in this tool. Use the dedicated Korean overseas-share tax calculator only when its taxpayer and asset conditions apply.
Frequently asked questions
Which FX rate convention should I enter?
Use reporting-currency units per one price-currency unit at entry and exit. For USD prices reported in KRW, enter KRW per USD.
How is FX impact separated from trading profit?
The FX impact is net sale proceeds times the exit-minus-entry FX difference. The other result compares actual converted proceeds with converted purchase cost.
Does the break-even unit price select FIFO lots?
No. This is one trade with one buy price. Use the separate crypto FIFO calculator for multiple purchase lots.
Examples last reviewed: . Rule and fee effective dates are listed in this guide and the calculator. The review date is not the effective date of every rule.
Official references
Investor.gov explains trading commissions and investment costs. It is background reading, not the source of an official worked example for the single-trade formula or hypothetical cases above. Reference topic and link checked December 6, 2026.