How can I change my W-4 so I don’t owe again?

I have owed taxes for the past several years. I got divorced last year and would like to update my W-4 so I don't owe anymore. Help