it varies. 40 is the default for when you were at 0 or super low when you merged, but there is a certain number I can never remember, maybe 20 or 25 and if you're at that you'll only get 4 water for merging, or sometimes you go to 30.
So merging with 0 water is actually better than merging with 25