We calculate the simultaneous in situ formation of Jupiter and Saturn by the core instability mechanism considering the oligarchic growth regime for the accretion of planetesimals. We consider a density distribution for the size of planetesimals and planetesimals migration. The planets are immersed in a realistic protoplanetary disk that evolves with time. We find that, within the classical model of solar nebula, the isolated formation of Jupiter and Saturn undergoes significant change when it occurs simultaneously.