what is the chemical equation for citric acid + sodium hydroxide?

I will be happy to critique your thinking . Remember a salt and water will be formed.

is it :
C6H8O7 + 3NaOH--> NaC6H5O7 + 3H2O ?

I would have written citric acid in this form H3-C6H5O7, and sodium citrate as Na3C6H5O7 . Notice that the citrate ion is C6H5O7-3

It should balance...
H3-C6H5O7 + 3NaOH >>Na3C6H5O7 + 3H2O

1 answer

Yes, your balanced chemical equation looks correct:

H3C6H5O7 (citric acid) + 3NaOH (sodium hydroxide) → Na3C6H5O7 (sodium citrate) + 3H2O (water)