A W12 engine is a twelve-cylinder piston engine where either three banks of four cylinders, or four banks of three cylinders are arranged in a W configuration around a common crankshaft.