Having an emergency fund is an essential part of any financial plan. It is especially important when you have an investment portfolio. Emergencies such as job loss, unexpected medical expenses, or unforeseen home repairs can derail your financial goals if you are not prepared. You can have a safety net to assist you withstand any financial storm by having an emergency fund. You should aim to have three to six months' worth of expenses saved up in a separate account from your assets. In this manner, you can immediately access your emergency savings without having to write off your investment losses. Keep in mind that while long-term investing is vital, having an emergency fund is crucial to protecting your financial future.