A work machine comprising: a multi-joint work implement including a boom and an arm ; a boom cylinder and an arm cylinder for driving the boom and the arm , respectively; an operating device for outputting a first control signal that matches an input amount by an operator to a flow control valve of the arm cylinder ; and a controller configured to calculate a second control signal used to operate the boom cylinder such that when a tip of the work implement is approaching a target surface by the first control signal, the tip of the work implement moves along the target surface , and control a flow control valve of the boom cylinder based on the second control signal to perform boom raising and boom lowering, characterized in that the second control signal is a pilot pressure supplied to a hydraulically driven unit of the flow control valve of the boom cylinder , the controller calculates, based on topographic information input from a topographic measurement device that measures topography near the work implement , positional information of a finished shape formed by the work implement driven by the second control signal, and in order to get the finished shape closer to the target surface on the basis of the positional information of the finished shape and of the target surface , the controller is configured to: correct the second control signal so as to increase a boom raising pilot pressure and decrease a boom lowering pilot pressure when a height of the finished shape is lower than that of the target surface ; and correct the second control signal so as to decrease the boom raising pilot pressure and increase the boom lowering pilot pressure when the height of the finished shape is higher than that of the target surface . a multi-joint work implement including a boom and an arm ; a boom cylinder and an arm cylinder for driving the boom and the arm , respectively; an operating device for outputting a first control signal that matches an input amount by an operator to a flow control valve of the arm cylinder ; and a controller configured to calculate a second control signal used to operate the boom cylinder such that when a tip of the work implement is approaching a target surface by the first control signal, the tip of the work implement moves along the target surface , and control a flow control valve of the boom cylinder based on the second control signal to perform boom raising and boom lowering, characterized in that the second control signal is a pilot pressure supplied to a hydraulically driven unit of the flow control valve of the boom cylinder , the controller calculates, based on topographic information input from a topographic measurement device that measures topography near the work implement , positional information of a finished shape formed by the work implement driven by the second control signal, and in order to get the finished shape closer to the target surface on the basis of the positional information of the finished shape and of the target surface , the controller is configured to: correct the second control signal so as to increase a boom raising pilot pressure and decrease a boom lowering pilot pressure when a height of the finished shape is lower than that of the target surface ; and correct the second control signal so as to decrease the boom raising pilot pressure and increase the boom lowering pilot pressure when the height of the finished shape is higher than that of the target surface . correct the second control signal so as to increase a boom raising pilot pressure and decrease a boom lowering pilot pressure when a height of the finished shape is lower than that of the target surface ; and correct the second control signal so as to decrease the boom raising pilot pressure and increase the boom lowering pilot pressure when the height of the finished shape is higher than that of the target surface . <EOS>