As social creatures, it is best to keep guinea pigs in small groups of between 2-8. Prevent aggression between them by neutering males and providing plenty of living space with hiding holes (pipes etc.). Their living accommodation should be large enough for them to have separate areas to hide and rest.
Neuter the male to prevent breeding.
Litter mates or a young male with an older one will live well together. Neuter to prevent aggression and keep well away from any females.
Two or more females will usually live happily together.
Not all guinea pigs will get on. Separate them if they fight repeatedly
Avoid two or more males with any females
Avoid more than two males together or fighting will occur