Cal. Rev. & Tax. Code § 24902
Except as otherwise provided in this part, on the sale or exchange of property the entire amount of the gain or loss, determined under Section 24901, shall be recognized.