Portfolio risks can be calculated, like calculating the risk of single investments, by taking the standard deviation of the variance of actual returns of the portfolio over time.
The two broad types of risk are: Systematic and Unsystematic. Systematic risk is risk within the entire system. This is the kind of risk that applies to an entire market, or market segment.