Scroll to the bottom if you're after a simple list of matchups.
So that we're on the same page, I'll establish the basic ideas of compatibility right away, in case there is any ambiguity: Pokemon are compatible if they share an Egg Group and are of opposite genders. Exceptions are Pokemon in the Undiscovered Egg Group, who can never breed, and Ditto who can breed regardless of gender and Egg Group, unless its partner is from the Undiscovered group. As for how this relates to Nidoran-M, Nidoran-F and their evolution lines, note they are not necessarily exceptions to these rules, so if you stick by them things will make sense eventually; they are however, anomalies within the system that can definitely confuse you. I will try my best to explain this in simple terms, but there may not be any easy way to outline this particular mechanic.
The first hurdle here is understanding which Pokemon in the Nidoran families can actually breed in the first place. Unfortunately this is where the first layer of complexity is met, so bear with me here: Nidoran-F, Nidoran-M, Nidorino and Nidoking are all in the Monster and Field groups and can therefore breed, but Nidorina and Nidoqueen are in Undiscovered and this cannot breed ever. This is where things are strange: Nidorina and Nidoqueen are unable to breed for seemingly no reason, and additionally, Nidoran-F can breed thus differentiating it from the others in its evolution line. If you can get your head around that, things start to make sense a lot quicker.
The main other mechanic to understand is the possibility that Nidoran of either gender will produce offspring that is not of the same gender. Gender dictates how much this affects the breeding matchup: since Nidoran-F is female, it will pass down the species, meaning this mechanic affects any breeding matchup it can possibly have. However, since Nidoran-M is male, the only time it passes the species is when it breeds with Ditto, so this mechanic doesn't matter for most possible breeding pairs. It is also important to note that Nidoran-M, Nidorino and Nidoking can only produce Nidoran-F eggs as of Gen 5, obviously assuming that you're breeding with Ditto.
Hopefully that makes sense, let me know if there's anything you're still wondering about. Below is a list of all the breeding matches that is helpful as an immediate reference.
- Nidoran-F + anything compatible = Nidoran-F or Nidoran-M
- Nidorina can never breed
- Nidoqueen can never breed
- Nidoran-M + Ditto = Nidoran-F (Gen 5+) or Nidoran-M
- Nidoran-M + anything compatible and not Ditto = refer to female
- Nidorino + Ditto = Nidoran-F (Gen 5+) or Nidoran-M
- Nidorino + anything compatible and not Ditto = refer to female
- Nidoking + Ditto = Nidoran-F (Gen 5+) or Nidoran-M
- Nidoking + anything compatible and not Ditto = refer to female
More info