What is an unrealized gain?

When a stock is traded on a stock exchange, the price changes continuously. If the price of your stock rises, you will make money when you sell it. This is called a realized gain. If you keep the stock and expect it to rise further, you have an unrealized gain.