For a long time, the IRS followed the rule that an income-producing activity was considered a hobby unless it showed a net profit during three out of five years. (If your writing is a hobby, then you may deduct book-related expenses only from book-related income.)