Question: when is retained earnings a debit?
Answer: A retained earnings balance is increased when using a credit and decreased with a debit. If you need to reduce your stated retained earnings, then you debit the earnings. Typically you would not change the amount recorded in your retained earnings unless you are adjusting a previous accounting error.