A wood splitter with an adjustable path of a hydraulic cylinder for optimizing the splitting cycle, said wood splitter comprising: - a splitting channel arranged to accept at least one log and is provided with: ∘ a splitting blade on one end of the channel, and ∘ a linearly movable pushing plate on the opposite end of the channel, wherein the pushing plate is movable with a hydraulic cylinder, - a controller for controlling operation of the hydraulic cylinder, - an electromagnetic hydraulic valve arranged to control the hydraulic cylinder based on information from the controller, characterized in that - the hydraulic cylinder is provided with a protective sheath, which surrounds the cylinder and said sheath is equipped with at least two reference points (4a, 4b, 4c), and - the wood splitter is provided with at least two non-movably installed sensors (3a, 3b) or switches mounted on a common holder one next to another, wherein said sensors (3a, 3b) or switches are arranged to detect reference points (4a, 4b, 4c) on the sheath and are connected to the controller so as to send detected reference points to the controller, on the basis of which the controller manipulates with said electromagnetic valve and consequently the hydraulic cylinder, - in the basic position of the hydraulic cylinder the first sensor is active and the second sensor is inactive, which means that below the first sensor the reference point, preferably a hole, is located, while below the second sensor material of the sheath is present, - the reference points (4a, 4b, 4c) are arranged to define at least distances L1 and L2, preferably three lengths L1, L2, and L3, wherein the distance L1 represents the length of the path from the sensor to the first hole, the distance L2 is the length of the path from the sensor to the second hole, and the optional distance L3 is the length of the path from the sensor to the third hole, and - wherein based on programmed and set movement of the hydraulic cylinder defined with the reference points (4a, 4b, 4c), the cylinder is arranged to return to its initial position with the aid of the controller and the electromagnetic valve after detection of the suitable reference point (4a, 4b, 4c) with the sensor (3a, 3b). - a splitting channel arranged to accept at least one log and is provided with: ∘ a splitting blade on one end of the channel, and ∘ a linearly movable pushing plate on the opposite end of the channel, wherein the pushing plate is movable with a hydraulic cylinder, ∘ a splitting blade on one end of the channel, and ∘ a linearly movable pushing plate on the opposite end of the channel, wherein the pushing plate is movable with a hydraulic cylinder, - a controller for controlling operation of the hydraulic cylinder, - an electromagnetic hydraulic valve arranged to control the hydraulic cylinder based on information from the controller, characterized in that - the hydraulic cylinder is provided with a protective sheath, which surrounds the cylinder and said sheath is equipped with at least two reference points (4a, 4b, 4c), and - the wood splitter is provided with at least two non-movably installed sensors (3a, 3b) or switches mounted on a common holder one next to another, wherein said sensors (3a, 3b) or switches are arranged to detect reference points (4a, 4b, 4c) on the sheath and are connected to the controller so as to send detected reference points to the controller, on the basis of which the controller manipulates with said electromagnetic valve and consequently the hydraulic cylinder, - in the basic position of the hydraulic cylinder the first sensor is active and the second sensor is inactive, which means that below the first sensor the reference point, preferably a hole, is located, while below the second sensor material of the sheath is present, - the reference points (4a, 4b, 4c) are arranged to define at least distances L1 and L2, preferably three lengths L1, L2, and L3, wherein the distance L1 represents the length of the path from the sensor to the first hole, the distance L2 is the length of the path from the sensor to the second hole, and the optional distance L3 is the length of the path from the sensor to the third hole, and - wherein based on programmed and set movement of the hydraulic cylinder defined with the reference points (4a, 4b, 4c), the cylinder is arranged to return to its initial position with the aid of the controller and the electromagnetic valve after detection of the suitable reference point (4a, 4b, 4c) with the sensor (3a, 3b).