A work machine comprising: a work device having a bucket; an actuator (16, 17, 18) configured to drive the work device; a controller configured to determine excavation work being performed by the work device on a basis of at least one of posture information of the work device and load information of the actuator (16, 17, 18), and calculate an excavation load as a load value of an excavation target object excavated by the work device; and a display device configured to display the calculated excavation load, characterized in that the controller is configured to calculate, as an excavation distance, any one of a distance from a reference point set to the work machine to a reference point set to the bucket when it is determined that the excavation work is being performed and a distance by which the reference point set to the bucket moves while it is determined that the excavation work is being performed, on a basis of the posture information of the work device, store the calculated excavation load and the calculated excavation distance in association with each other, set correspondence relation between a target excavation load as a target value of the excavation load and a target excavation distance as a target value of the excavation distance on a basis of a tendency of correspondence relation between the stored excavation load and the stored excavation distance, set the target excavation load on a basis of rated capacity information of the bucket, and calculate the target excavation distance on a basis of the set correspondence relation and the set target excavation load, and the display device is configured to display the calculated target excavation distance. a work device having a bucket; an actuator (16, 17, 18) configured to drive the work device; a controller configured to determine excavation work being performed by the work device on a basis of at least one of posture information of the work device and load information of the actuator (16, 17, 18), and calculate an excavation load as a load value of an excavation target object excavated by the work device; and a display device configured to display the calculated excavation load, characterized in that the controller is configured to calculate, as an excavation distance, any one of a distance from a reference point set to the work machine to a reference point set to the bucket when it is determined that the excavation work is being performed and a distance by which the reference point set to the bucket moves while it is determined that the excavation work is being performed, on a basis of the posture information of the work device, store the calculated excavation load and the calculated excavation distance in association with each other, set correspondence relation between a target excavation load as a target value of the excavation load and a target excavation distance as a target value of the excavation distance on a basis of a tendency of correspondence relation between the stored excavation load and the stored excavation distance, set the target excavation load on a basis of rated capacity information of the bucket, and calculate the target excavation distance on a basis of the set correspondence relation and the set target excavation load, and calculate, as an excavation distance, any one of a distance from a reference point set to the work machine to a reference point set to the bucket when it is determined that the excavation work is being performed and a distance by which the reference point set to the bucket moves while it is determined that the excavation work is being performed, on a basis of the posture information of the work device, store the calculated excavation load and the calculated excavation distance in association with each other, set correspondence relation between a target excavation load as a target value of the excavation load and a target excavation distance as a target value of the excavation distance on a basis of a tendency of correspondence relation between the stored excavation load and the stored excavation distance, set the target excavation load on a basis of rated capacity information of the bucket, and calculate the target excavation distance on a basis of the set correspondence relation and the set target excavation load, and the display device is configured to display the calculated target excavation distance.