Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
For this size server I would recommend the 2GB droplet. While it may be possible to run this on a 1GB droplet you would see the best performance on the larger size and doing some searching online shows that many places recommend 2GB of RAM for 20-40 players.
Whichever you select I would also recommend enabling swap on your droplet to prevent the server from crashing should your available memory be used up.
This comment has been deleted
It’s hard to say precisely, having said that looking at the following page in the Minecraft fandom wiki - https://minecraft.fandom.com/wiki/Server/Requirements/Dedicated
It suggests 4GB of RAM for about 15 people on the server. This does seem a little bit extreme. With that said, I’ll recommend getting a droplet with about 2 to 3 GB of RAM and upgrading it afterward if needed.
Additionally, don’t forget to add SWAP to your Droplet as well.