EU countries don't pay a flat membership fee. Instead, they contribute to the EU budget through a system based on Gross National Income (GNI)—essentially, the size of their economy. The richer the country, the more it pays.
The GNI key ensures progressivity: Germany, France, Italy, Spain, and the Netherlands are the largest net contributors. Poorer member states (e.g., Bulgaria, Romania) pay less and often receive more in cohesion and agricultural funds than they contribute.
Some countries (historically the UK, now Netherlands, Sweden, Denmark, Austria, Germany) negotiate rebates or correction mechanisms to limit their net contributions. These are politically negotiated every 7-year Multiannual Financial Framework (MFF).
This system embodies solidarity: richer nations invest in poorer regions' development (infrastructure, research, agriculture), creating a larger, more stable single market that benefits all. The budget is ~1% of EU GNI—small relative to national budgets, but strategically powerful.