Homemade tartar sauce will last for 3-4 weeks in the fridge. Storebought mayo has a very long life, so the ingredient that prevents this sauce from lasting longer is the fresh onion.