Just to add some contrast to this $20k figure and Watham's comments about the upside, I've published several small books that get very good reviews but haven't sold a lot of copies. I self published on Amazon as an eBook and then Print on Demand. My profits have totaled less than $1,000 in a couple years. My problems are likely that I don't have an audience built and Amazon rank is terrible until you have sales.
If you're not in it _just_ for the money though, go for it. It's extremely satisfying.
My most popular book is actual a book about how I self published. Publish Your Ebook by Joel Dare.