diff --git a/dumux/material/fluidstates/compositionalfluidstate.hh b/dumux/material/fluidstates/compositionalfluidstate.hh
index b30aa4e87ff8b6fc8f81c0418a33be7849036010..d97ad1489a1130fff5b67602fd9fa79fa6a689e7 100644
--- a/dumux/material/fluidstates/compositionalfluidstate.hh
+++ b/dumux/material/fluidstates/compositionalfluidstate.hh
@@ -27,6 +27,7 @@
 #define DUMUX_COMPOSITIONAL_FLUID_STATE_HH
 
 #include <algorithm>
+#include <cmath>
 
 #include <dune/common/exceptions.hh>