sale of second home in a different state

We live in CA and we sold a second home in AZ. The second home was never used as a rental or business. Do I report the income and capital gains in both CA and AZ?