Four-dimensional flow magnetic resonance imaging of the liver can be used to characterize the blood flow in the portal vein. This could be a useful tool to evaluate portal hypertension. However, four-dimensional flow magnetic resonance imaging typically requires a long acquisition time, which limits clinical usefulness. We therefore investigated if compressed sensing can be used to shorten the acquisition time. We found that the acquisition time could be reduced to 8-10 minutes, without impacting the flow measurements.