This paper analyzes the costs and benefits of in-house and contracted-out R&D. Estimating a dynamic model on Dutch ICT firms from 2000 to 2020, I find that productivity gains are similar across R&D activities, but that contracting R&D out is much more costly than doing it in-house. This explains why so few firms only contract out. However, for a firm that also does in-house R&D, 94% of this extra cost disappears, which I interpret as a hold-up problem in the external contract. Finally, a uniform subsidy raises R&D participation and firm value more than a subsidy for in-house R&D only.