Fertility treatments can cost tens of thousands of dollars, and the tax code does offer some relief for those expenses. In vitro fertilization and other fertility treatments are recognized as qualified medical expenses by the IRS. Costs for egg retrieval, storage, transfer procedures, and related medications can all be included in your medical expense deduction. You need to itemize and your total medical costs must exceed 7.5 percent of your adjusted gross income. Given how expensive fertility treatment often is, many families dealing with these costs do end up exceeding that threshold, making the deduction genuinely helpful.