Integral formulas for the winding number of a curve around a point in the plane, and for the linking number of two disjoint simple closed curves in three-space are classical. We'll explore various generalizations of these formulas and their geometric, topological and analytic consequences.