Earned income and capital gains are type of income. Earned income is the compensation you get from working therefore the salary you get from offering your service. On the other hand, capital gains income is acquired by selling an investment at a much higher price. Best example for this type of income is stock market investing.