This is a guess. Did you include the cost of the shares that you received as a dividend in computing the basis for the loss? $500 original investment $25 dividend (as shares) Cost basis $525 all shares Sale $450 all shares Loss $ 75 Dale Alspach