# Clean vs. Dirty Price and its impact on duration

When calculating duration would you use the clean price or the dirty price? why for either?

By definition, modified duration is $$D_\text{mod} = \frac{1}{P} \frac{dP}{dy}$$ where $$P$$ is the dirty price of a bond.