The caffeine content in a coffee and walnut cake can vary depending on factors such as the type and amount of coffee used in the recipe. Generally, the caffeine content in a coffee and walnut cake is relatively low compared to a cup of coffee. Each slice of this coffee and walnut cake contains roughly 28-30 mg of caffeine.