what is the equation for a machines efficiency

The equation for a machine's efficiency is given by:

Efficiency = (Useful Output Energy or Work / Input Energy or Work) * 100%

Alternatively, it can also be expressed as:

Efficiency = (Output Power / Input Power) * 100%