All parents want their children to grow into happy and successful adults, so it’s no wonder the vast majority say they’d provide a financial bailout for their debt-mired adult children. 

Nine in 10 parents would give their children money to pay down debt—regardless of whether or not they expect the child to repay the funds, according to a new survey by CreditCards.com.

Parents say they’d hand over an average of $5,705 as a gift or $7,936 as a loan to help children reduce their debt, though the most commonly cited potential aid is between $1,001 and $5,000. 

When it comes to a willingness to help, the type of debt makes a difference. Parents have the fewest reservations about helping their children pay down medical debt (68% had no problem with that), followed by student loans (52%), utilities (47%), and mortgages or rent (45%).

By contrast, 57% of those surveyed say that they’d never help with a gambling debt, and only 13% would have no problem pitching in with credit card debt.

If you’re thinking of providing debt relief to your adult child, keep these tips in mind.

Put your own finances first

Make sure that helping your child won’t slow your progress toward your own financial goals.

If you’re behind on retirement savings or don’t have an emergency fund with at least three to six months’ worth of expenses stashed away, for example, helping your child should wait.

Make it a gift, if possible

Structuring your assistance as a gift rather than a loan may help you avoid uncomfortable situations if junior doesn’t strictly adhere to an agreed-upon payment schedule.

“Loans between family members don’t always work out well, and you may not get paid back anyway,” says Cynthia Meyer, resident financial planner with Financial Finesse.

Offer other resources as well

In addition to giving money, connect your child with other resources that can assist him with debt repayment, such as a nonprofit credit counseling agency or a medical billing advocate.

Your one-time assistance may put him on the path to more manageable debt, but it’s up to him to remain on it.