As already stated, it’s dependant on so many factors you really need to experiment to get the right ratio, but 2:1 is a good starter.
As a guide I used to live in Kent and found ran 2 bikes – a singlespeed cross bike at 42:18 and a rigid MTB at 32:16. Both were fine for local trails with not many really steep climbs (N Downs, Bedgebury etc), the crosser was a tad overgeared offroad but really good for mixed riding.
Now live on Dartmoor, which is really steep but have kept the rigid MTB. Tried to tough it out at 32:16 for the first year but really struggled. Now dropped to 32:18 which seems spot on. Still have to carry it up some of the steeper stuff, but mainly on climbs I’d be either pushing up anyway or struggling to make walking pace in the granny gear on a geared bike!