A gain or loss is realized when a transaction is completed. However, not all realized gains and losses are taxed (recognized). A recognized gain or loss occurs when a taxpayer is obligated to pay tax on a completed transaction.