We estimate a stochastic frontier model with random inefficiency parameters, which allows us not only to identify the role of bank risk-taking on driving cost and profit inefficiency, but also to recognize heterogeneous effects of risk exposure on banks with different characteristics. We account for an integral group of risk exposure covariates including credit, liquidity, capital and market risk, as well as bank-specific characteristics of size and affiliation. The model is estimated for the Colombian banking sector during the period 2002-2012. Results suggest that risk-taking drives inefficiency and its omission leads to over (under) estimate cost (profit) efficiency. Risk-taking is also found to have different effects on efficiency of banks with different size and affiliation, and those involved in mergers and acquisitions. In particular, greater exposures to credit and market risk are found to be key profit efficiency drivers. Likewise, lower liquidity risk and capital risk lead to higher efficiency in both costs and profits. Large, foreign and merged banks benefit more when assuming credit risk, while small, domestic and non-merged banks institutions take advantage of assuming higher market risk.