Just to put some perspective on things, here are some numbers.
Note: Even if you somehow got rid or piracy, do not expect a 100% in sales, maybe 10-20% at best.
For the past 6 years or so, the usual amount of shows that break 10k BD sales in their first volume is 3-4 (last season is currently 2, unless Charlotte breaks 10k this week). The first volume for any shows sells the most, and it is just downhill from there. However, an average series usually sells about 3k a volume.
Most series in japan, are split into 6 volumes, so 6 different DVD/BDs
The average anime DVD/BD sells anywhere from 6000-8000 yen at launch and usually doesn't go down much, unless it really doesn't sell and takes up shelf space.
From what I heard, a half decent 13ep anime cost a few million usd to produce, so for estimate's sake, let say 300million yen.
So let's assume that the production company and license owners take 90% of the sales (probably inaccurate, but again for estimate's sake). The amount the series maker will get is 6 vol * 3000 copies * 7000 yen/copy * 0.9 = 113.4mil yen. About 1/3rd of what I said it takes to produce the anime.
Now let's throw some more numbers here. If you have an anime opening by a semi famous artist, the single for the opening, will net about 5-10k sales.
The average music single is 2000 yen (yes, 2k yen for 2 songs + 2 karaoke versions).
So we have 2 singles (op and ed), and if we add up the money for that and use the 0.9 multiplier from earlier, we get 2 singles * 7500 copies * 2000 yen/copy * 0.9 = 27mil yen About 10% of the 300mil I mentioned earlier.
Animes also give the source material a boost in sales. For manga and light novels, they generally get anywhere from a 10k boost to a few hundred thousand (Chihayafuru). For argument sake, let's say the series gets a 75k boost.
A novel/manga cost about 500-800 yen in japan, so 650 yen/vol * 75000vol * 0.9 ~ 43.9mil yen about 15% of the 300mil I mentioned earlier.
=======================
So let's add up everything so far 113.4 + 27 + 43.9 = 184.3mil. about 60% of the 300mil. As a result, the rest of the money needed to make most of these shows much come from other merchandise, or the show just has to run on that smaller budget to even consider breaking even.
I am not sure what anyone on this thread means by a masterpiece since that is highly subjective, but unless your series is somehow in the top 4 of the season, anime sales don't count for that much (about 35% in the the calculations above). However, if you have noticed, there has been a rise in music based shows, not just because of how it seems to be all the rage, but how much you can merchandise the show. For example, Symphogear doesn't have the op and ed singles, but 10 singles with the character songs, insert songs, op, and ed. Netting them >100k albums sold or using the previous calculations >180mil yen, over 50% of the 300mil I mentioned earlier. While making those songs will definitely make production cost go up, the return on investment is usually greater.
Also as a small reminder, being popular with a Western Audience means pretty much nothing. Rokka no Yuusha, one of the higher regarded shows by western audience's last season, sold under 1k copies, had a very small LN boost, and got very little viewership from its home country. If you use the numbers above, you can easily tell that it did horribly.