Last year I built an office in the back yard. Can I expense the building material I purchased and contractor payments?

The material is insulation, wood paneling, flooring, wiring, and so on for the finishing of a shed that was built by a contractor.