Minimum cost flow calculator with supplies and demands

Your numbers

Positive is net outgoing supply; negative is net incoming demand. One entry per node; grand total exactly zero.
One rational capacity/cost row per edge. Labels start at 1. Finite nonnegative capacities; negative unit costs are allowed.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

QuickCalculators · Full calculator and methodology ↗