Help to reduce capital gains from selling our house

We sold our house in 2023 after owning it for 24 years. The apparent capital gain from the sale is greater than $500,000. How do I reduce my capital gains from the sale of the house? What information or documentation will I need?