As a general rule of thumb, 5 grams of onion per kilogram of a dog’s body weight is considered safe. However, some dogs may have more resistance towards them but still, it is important to consider that onion is not a safe veggie for your canine and there are always risks associated with it.