A machine for forming bags with infusion or extraction products comprising at least: - a station for forming and feeding single sheets of wrapping material; - a station for U-shaped folding of the single sheet comprising a folding device and a first carousel , rotating about a first axis of rotation, equipped with a plurality of first radial grippers each configured to receive a corresponding single sheet ; - a unit for sealing the two lateral edges of the single sheet , positioned in the corresponding first gripper , in such a way as to create a bag with a closed bottom by folding, two opposite sides closed by sealing and an open end or opening , opposite the bottom; - a second carousel , rotating about a second axis of rotation, equipped with a plurality of second radial grippers configured to each receive the bag which has been created; said bag being positioned on the corresponding second gripper with the open mouth facing towards the outside of the second carousel ; the second carousel rotating about the second axis moving each second gripper along a path (P), passing through at least one dosing station having at least a first dosing device configured for feeding by gravity a first infusion or extraction product, along a dosing trajectory (T), into the open opening of the bag ; characterised in that the dosing station also comprises: - a second dosing device configured for preparing a dose of a second infusion or extraction product; - a transporting element positioned between the first and the second dosing device and having at least one container for receiving the dose of the second infusion product from the second dosing device ; said transporting element being configured to move the container from a position for loading the dose of the second product to a position for unloading the second product at a zone which meets the dosing trajectory (T) from where the container discharges the dose of the second product in the bag being . - a station for forming and feeding single sheets of wrapping material; - a station for U-shaped folding of the single sheet comprising a folding device and a first carousel , rotating about a first axis of rotation, equipped with a plurality of first radial grippers each configured to receive a corresponding single sheet ; - a unit for sealing the two lateral edges of the single sheet , positioned in the corresponding first gripper , in such a way as to create a bag with a closed bottom by folding, two opposite sides closed by sealing and an open end or opening , opposite the bottom; - a second carousel , rotating about a second axis of rotation, equipped with a plurality of second radial grippers configured to each receive the bag which has been created; said bag being positioned on the corresponding second gripper with the open mouth facing towards the outside of the second carousel ; the second carousel rotating about the second axis moving each second gripper along a path (P), passing through at least one dosing station having at least a first dosing device configured for feeding by gravity a first infusion or extraction product, along a dosing trajectory (T), into the open opening of the bag ; - a second dosing device configured for preparing a dose of a second infusion or extraction product; - a transporting element positioned between the first and the second dosing device and having at least one container for receiving the dose of the second infusion product from the second dosing device ; said transporting element being configured to move the container from a position for loading the dose of the second product to a position for unloading the second product at a zone which meets the dosing trajectory (T) from where the container discharges the dose of the second product in the bag being . <EOS>