Thermodynamics and information theory are closely related but the fundamental limitations of this relation are difficult to determine. Combining concepts from one-shot information theory, probability theory and statistical mechanics, the author quantifies extractable work in a non-equilibrium system.