Retirement tax questions

Thank you,

 

So, is this hypothetical example correct?

Age 72   I have a retirement account value of $1M

I received a 4% dividend yield during the year of $40,000
I receive $25,000 income in Social Security

My gross income for tax purposes would be $40,000 + $25,000 = $65,000 and would be taxed based on the income of $65K.

This would also satisfy the 4% RMD due to the $40K withdrawal?