But if you're self-employed (or operate a business that's a sole proprietorship) you can deduct your expenses (equipment, rent on your home office, etc.) from your taxable income. In the U.S., you attach "Schedule C" to your federal tax return to do this:
https://www.irs.gov/forms-pubs/about-schedule-c-form-1040