Why is Independence Day celebrated on July 4th?

Why is Independence Day celebrated on July 4th? The Continental Congress declared its independence from Great Britain on July 2, 1776. If that date raises an eyebrow, it should. Independence Day in the United States has long been celebrated on July 4th, which would seem to be two days late.