It is proved that if a normal semifinite weight on a von Neumann algebra satisfies the inequality for any selfadjoint operators in , then this weight is a trace. Several similar characterizations of traces among the normal semifinite weights are proved. In particular, Gardner's result on the characterization of traces by the inequality is refined and reinforced.