Cross-sectional river shapes were obtained from a variational principle: minimizing the bed friction for a given discharge and a given maximum lateral bed slope (angle of repose). The optimal shape is found to be independent of both the exponent in the friction law adopted and the value of the discharge, but it does depend on the angle of repose. The optimal profile is a single stream; for braided rivers the solution is suboptimal