A sample preparation device (1) comprising a first chamber (2) containing a first movable piston (2C) separating a first volume (2A) upstream and a second volume (2B) downstream the first piston (2C) a second chamber (3) containing a second movable piston (3C) separating a third volume (3A) upstream and a fourth volume (3B) downstream the second piston (3C) and an inlet (44A) to the first volume (2A) and an outlet (5) from the first volume (2A). The first volume (2A) is connected with the third volume (3A) by a first communication path (6) and the second volume (2B) is connected with the fourth volume (3B) by a second communication path (7).