"$4,150 if you're under 55 at the end of 2024 and are covered by an individual (self-only) HDHP;
$8,300 if you're under 55 at the end of 2024 and are covered by a family HDHP;
$5,150 if you're 55 or older at the end of 2024 and are covered by an individual (self-only) HDHP;
$9,300 if you're 55 or older at the end of 2024 and are covered by a family HDHP."
You can find your HSA contributions that your employer made and that you made via payroll on your W-2 Box 12 Code W. Add any contributions you made personally, not through payroll but you sent directly to the HSA account, to the number in Box 12 Code W from your W-2. If you are married, do the same exercise with your spouse's numbers and add their result to your result. Then compare the limits listed above to your total contributions.
For example, if you are married and both under 55, and the 2 of you contributed $9,000, then you overfunded by $700, based on the maximum of $8,300 for the family HDHP.