Metering based on application code complexity is provided. Code of an application to be executed is received from a user. Values of parameters corresponding to the application are extracted based on analysis of the code. A set of computational vectors corresponding to extracted values of the parameters of the application is generated to calculate a complexity of the code. A metering metric to charge the user to execute the application is determined based on the complexity of the code. The application is executed at the metering metric based on the complexity of the code.