A transmission for a vehicle, comprising: - a first input shaft, a second input shaft, a countershaft, a main shaft, and an output shaft, - a first gear plane comprising a first input shaft gearwheel arranged on the first input shaft, a first main gearwheel and a first countershaft gearwheel arranged on the countershaft, the gearwheels of the first gearwheel plane being arranged in mutual driving connection, - a second gear plane comprising a second input shaft gearwheel arranged on the second input shaft, a second main gearwheel and a second countershaft gearwheel arranged on the countershaft, the gearwheels of the second gearwheel plane being arranged in mutual driving connection, - a range gear, the range gear comprising at least a first, a second and a third range gear component (51, 52, 53), the first range gear component being rotationally connected to the output shaft, - a first gear engaging device (44a, 44b), and - a second gear engaging device (45, 45a, 45b), characterized in that the first main gearwheel is rotatably arranged on the main shaft (43, 43'), the second main gearwheel is rotatably arranged on the main shaft (43, 43') or on the output shaft, the first countershaft gearwheel being selectively drivingly connectable to the second countershaft gearwheel, wherein the range gear is selectively settable to a high range gear or a low range gear, and wherein the first gear engaging device (44a, 44b) is selectively settable to: ∘ a first gear engaging device first state in which it drivingly connects the first main gearwheel to the first range gear component, ∘ a first gear engaging device neutral state, and ∘ a first gear engaging device second state in which it drivingly connects the first main gearwheel to the second range gear component, wherein the second gear engaging device (45, 45a, 45b) is selectively settable to at least: ∘ a second gear engaging device first state in which it drivingly connects the second main gearwheel to the second range gear component, and ∘ a second gear engaging device neutral state. - a first input shaft, a second input shaft, a countershaft, a main shaft, and an output shaft, - a first gear plane comprising a first input shaft gearwheel arranged on the first input shaft, a first main gearwheel and a first countershaft gearwheel arranged on the countershaft, the gearwheels of the first gearwheel plane being arranged in mutual driving connection, - a second gear plane comprising a second input shaft gearwheel arranged on the second input shaft, a second main gearwheel and a second countershaft gearwheel arranged on the countershaft, the gearwheels of the second gearwheel plane being arranged in mutual driving connection, - a range gear, the range gear comprising at least a first, a second and a third range gear component (51, 52, 53), the first range gear component being rotationally connected to the output shaft, - a first gear engaging device (44a, 44b), and - a second gear engaging device (45, 45a, 45b), the first main gearwheel is rotatably arranged on the main shaft (43, 43'), the second main gearwheel is rotatably arranged on the main shaft (43, 43') or on the output shaft, the first countershaft gearwheel being selectively drivingly connectable to the second countershaft gearwheel, wherein the range gear is selectively settable to a high range gear or a low range gear, and wherein the first gear engaging device (44a, 44b) is selectively settable to: ∘ a first gear engaging device first state in which it drivingly connects the first main gearwheel to the first range gear component, ∘ a first gear engaging device neutral state, and ∘ a first gear engaging device second state in which it drivingly connects the first main gearwheel to the second range gear component, ∘ a first gear engaging device first state in which it drivingly connects the first main gearwheel to the first range gear component, ∘ a first gear engaging device neutral state, and ∘ a first gear engaging device second state in which it drivingly connects the first main gearwheel to the second range gear component, wherein the second gear engaging device (45, 45a, 45b) is selectively settable to at least: ∘ a second gear engaging device first state in which it drivingly connects the second main gearwheel to the second range gear component, and ∘ a second gear engaging device neutral state. ∘ a second gear engaging device first state in which it drivingly connects the second main gearwheel to the second range gear component, and ∘ a second gear engaging device neutral state.