It ranges from nothing at all to more than a Hollywood film, and the difference is almost entirely scope.
Simple browser games can be built for free using tools that provide the engine and hosting for you — there are sites that let you assemble and publish a small game without spending a penny. That is the right place to start if you are learning.
Once you want custom art, original music, a proper engine licence and paid programmers, costs climb quickly into the thousands and then the millions. Most first projects should be small, finished and free.