We prove an inequality for the capacity of a condenser via a holomorphic function f, under a valency assumption on f, and we show that equality occurs if and only if f has finite constant valency. Also, we generalize a well known inequality for quasiregular mappings and we give a necessary condition for the case of equality.