Home improvements and capital gains?

What are the implications of home improvements on capital gains tax when I sell my home? How can I ensure I’m maximizing my deductions and understanding the tax laws?