**The basic algorithm is the dead chips (folds) + the minimum committed chips are distributed among the winners of the hand. If after this, there are still chips left in the pot, the process is repeated. If there are no winners in subsequent iterations, the committed chips are distributed back to their respective owners.**

So let's say at the end of a hand there were three players all-in and $300 in dead chips:

P1 shoved $50, P2 shoved $100 and P3 shoved $150.

If the hands were equal (3 way pot), everyone would get $150 in the first iteration.

In the next, P2 & P3 would collect an additional $50. In the final iteration, P3 would collect an additional $50.

So the winnings would be:

P1 $150

P2 $200

P3 $250

N.B. this excludes rake.