PurposeThe objective of this paper is threefold. First, it aims to empirically study whether firm-specific/idiosyncratic uncertainty, macroeconomic/aggregate uncertainty and political uncertainty have an adverse influence on firms' investment decisions in Pakistan. After establishing this, it scrutinizes whether the uncertainty effects on investment are different for firms of different sizes. Finally, it investigates whether any heterogeneity exists in the uncertainty impacts across different industries.Design/methodology/approachThe empirical analysis is based on an unbalanced panel data of 468 nonfinancial firms listed at the Pakistan Stock Exchange (PSX) during the period 2000–2018. Departing from the literature, the paper builds a time-varying composite volatility/uncertainty index based on the principal component analysis (PCA) by utilizing the constructed volatility series for sales, cash flows and return on assets to gauge firm-specific uncertainty for each firm included in the analysis. Likewise, the paper develops a PCA-based composite index for macroeconomic uncertainty by using the conditional variance series of consumer price index (CPI), industrial production index (IPI), the interest rate and the exchange rate obtained by estimating the (generalized) autoregressive conditional heteroscedastic, (G)ARCH, models. Finally, political uncertainty is measured by political risk components maintained by the Political Risk Services Group. The empirical framework of the paper augments the standard investment equation by incorporating all three types of uncertainty. Firms are grouped into small, medium and large categories based on firms' total assets and the size indicators are generated. Next, the indicators are multiplied by each uncertainty measure to quantify the differential effects of uncertainty across firm size. Firms are also differentiated by sectors to explore the sector-based asymmetries in the uncertainty effects. The “robust two-step system generalized method of moments (2SYS GMM) (dynamic panel data) estimator” is applied to estimate the empirical models.FindingsThe results provide robust and strong evidence of the detrimental influence of all three types of uncertainty on investment. Yet, it is observed that the strength of the influence considerably varies across uncertainty types. In particular, compared to firm-specific uncertainty, both macroeconomic and political uncertainties have more unfavorable effects. The analysis also reveals that the effects of all three types of uncertainty are quite different at small, medium and large firms. Specifically, it is observed that although the investment of all firms is influenced adversely by magnified uncertainty, the adverse effects of all three kinds of uncertainty are quite stronger at small firms than medium and large firms. These findings support the phenomenon of size-based asymmetries in the effects of uncertainty on investment. The results also provide evidence that either type of uncertainty quite differently affects the investment policy of firms in different sectors.Practical implicationsThe findings help different stakeholders to know how different types of uncertainty differently affect corporate firms' investments. Further, they suggest that firm size has a vital role in ascertaining the adverse effects of uncertainty on investment. The paper identifies to which type of uncertainty investors and policymakers should care more about and to which types of firms and industries they should concern more during volatile times. Firms should have more fixed assets and expand their size to mitigate the detrimental effects on investment of internal and external uncertainties. The government should enhance the political stability to induce firms for a higher level of investment, which, in turn, will result in higher growth of the economy.Originality/valueThe originality of the paper is credited to four aspects. First, unlike most previous studies that have utilized a single volatility measure, this paper constructs composite uncertainty indices based on the weights determined by the PCA. Second, it examines the effect of political uncertainty over and above the effects of idiosyncratic and aggregate (macroeconomic uncertainty) for an emerging economy. Third, and most important, it provides first-hand empirical evidence on the role of firm size in establishing the asymmetric effects of uncertainty on investment. Finally, it provides evidence on the industry-based heterogeneity in the uncertainty effects.