Generally, no, you can't deduct yoga classes as a medical expense. Deductions for exercise, fitness programs or swimming classes aren't acceptable unless the doctor recommends them as a specific treatment for a specific health problem. If this is the case, however, have a prescription or written note from your doctor and keep it with your tax records.