Codecademy employs a freemium model, offering basic courses for free while charging for premium content and features. The premium subscription, Codecademy Pro, provides access to more advanced courses, real-world projects, and personalized learning paths. This model allows the platform to attract a large user base while generating revenue from those seeking more comprehensive learning experiences.