People love to get a tax refund. But a refund means you’re essentially getting back your own money. A tax refund means you overpaid your taxes to the government, likely by having too much money withheld from your paycheck.

Most of us consider a refund to be the lesser of two evils. If too little money is withheld, you could owe a lot of money when you file your return in April. Still, the IRS says the average refund check was $2,800 per return last year — a big interest-free loan to the government. It’s more sensible to come out about even at tax time.

Withholding and the new tax law

The new tax law has made figuring out the appropriate amount of withholding even more difficult. Your personal exemption has disappeared, and your standard deduction has increased. Some of your larger deductions for state income and property taxes may have become less useful, given the new $10,000 limit. And, of course, tax rates are lower.

The Treasury department has created an online withholding calculator, designed to help you figure out how much to have your employer take out of every paycheck. And the calculator is not just for wage earners who get a regular paycheck.

There’s a place to input income from self-employment and other non-wage income, such as dividends or interest. That’s a help not only to the wealthy but also to retirees who may receive pension income or retirement plan withdrawals from which taxes are not withheld. They need to estimate quarterly tax payments.

The most basic criteria for calculating withholding include personal issues such as how many children you have, whether your spouse works and your filing status (e.g., filing a joint return).

Using the new calculator can help you determine whether your current withholding amounts are adequate. You might owe more taxes — even at lower tax rates if fewer deductions are allowed.

Using the calculator

Google “IRS withholding calculator” to get started. The form is simple to fill out, but it will be helpful to have your most recent tax return and latest paycheck stub available, because the calculator asks for your expected gross income for the year and the amount currently being withheld from your paycheck for taxes.

Other information from last year’s return includes questions about claiming child care and dependent credits, and how much you deducted last year for things like charitable contributions or medical expenses.

You don’t have to input any personal information, such as your name, Social Security number, address or other identifying features. And the IRS does not save this information. It’s purely a tool to help you calculate how much you should be paying per paycheck or per quarter.

How do you adjust your payroll withholding? Ask your employer for a new form W-4, on which you list the number of exemptions you claim. And if your circumstances change during the year — such as a job loss or a big bonus — you’ll want to go back to the calculator once again to make an adjustment to your payroll withholdings or quarterly estimates.

The IRS warns that if you have a complicated return or might be subject to the alternative minimum tax or have huge capital gains or qualified dividends, you should consult your tax preparer to make sure you have adequate withholding.

There’s another reason to look at your withholding under the new tax laws. As long as you pay at least 100 percent of your tax liability from the previous year (2017 for the 2018 tax year), or pay in at least 90 percent of the current year’s required taxes, you can avoid the substantial penalty for underpayment of estimated taxes.

Rarely do I find a reason to thank the IRS for anything. But this calculator is an exception. And that’s The Savage Truth.

Terry Savage is a registered investment adviser and the author of four best-selling books. She responds to questions on her blog at TerrySavage.com.