Update in progress. Values not currently accurate for the Rise of the Angry Earth expansion.
This table shows the cheapest refining route to acquire each material. The Avg. Cost takes into account all bonuses and applies them with no variance. Thus, this is only accurate on larger quantities (100+). Select the specific material to view a more granular calculator. TP Flip and Margin show the potential profit for selling the refined material back on the Trade Post.