Computer implemented method for planning a liver resection, comprising the steps of: - Receiving a three-dimensional medical image dataset (1) comprising a depiction of a liver (2) of a patient, the depicted liver (2) comprising a tumor (3), - segmenting multiple functional segments (4-12) of the liver (2) in the medical image dataset (1), - segmenting of the tumor (3) in the medical image dataset (1), - selecting at least one of the functional segments (4-12) that comprises the tumor (3) or into which the tumor (3) extends, based on the segmentation of the tumor (3) and the segmentation of the functional segments (4-12), - selecting for the respective selected functional segment (12), whether a complete removal or a partial removal of this selected functional segment (12) is to be performed in a proposed liver resection plan (13), wherein the selection is based on the segmented tumor (3), and - providing the proposed liver resection plan (13).