A hot gas engine, such as a Stirling engine is described which comprises a displacer portion and an expander portion with a heat exchanger connected between them. The expander portion has a piston which is operatively connected to and rotates an expander crankshaft. In like manner, the displacer portion is provided with a piston which is also operatively connected to and rotates with a separate displacer crankshafts. The two crankshafts are synchronized with respect to each other preferably by means of an idler gear. Banks of displacer pistons can also be provided for operation on a common displacer crankshaft and banks of cooperating expander pistons also can be provided for operation on a common expander crankshaft