Practically anything we eat or they eat contains something toxic if it is eaten in huge quantities. Dosage is extremely important and often ignored. I’ve seen books, blogs, and column-inches where people are selling fear. Fear can be quite profitable. So be a bit careful about what you read.
Members of the nightshade family like tomatoes, potatoes, peppers and eggplant I believe have a product in the leaves that is toxic to chickens and people. You have to eat a certain amount to get sick and even more for it to be fatal, but yes it is toxic. The good thing is that the leaves are also very bitter. Normally a chicken will take one or two bites, think that tastes awful, and quit eating it before it eats enough to harm itself. That’s not to say there is not some chicken out there with messed up instincts that won’t quit eating the leaves and eat itself to death. But that I extremely rare. I would not worry about that at all. At the same time, I would not throw those plants in their run. If there is nothing else green for them to eat they may be more tempted to ignore the bitterness and eat those leaves. They really like the fruit like peppers and tomatoes and that is not going to hurt them. It’s generally the leaves that is the problem.
Cabbage and other cole crops contains something that messes with the thyroid. But cabbage, broccoli, and other leaves are a great treat for chickens. The dosage of that chemical in the leaves is so small you or they would have to eat a tremendous amount over a period of weeks to harm yourself or them. That’s just not going to happen.
You’ll sometimes see warnings about feeding them potatoes. Potatoes do contain a substance that in large enough quantities can harm people or chickens. But the liver is pretty good about removing that substance from our bodies. A normal healthy adult human would have to eat more than 50 pounds of potatoes at one sitting to get enough to harm themselves. I just can’t eat that many potatoes at one meal. Chickens are a lot smaller than us so they would not have to eat nearly as much, but their crops aren’t that big either. Regular potatoes are not a problem.
There is a problem with green-skinned potatoes though. Green potatoes are green because they have been exposed to the sun. Exposure to the sun concentrates that bad chemical. Neither you nor the chickens should eat green-skinned potatoes, cooked or not. You’d still have to eat a fair amount of them for them to do damage but you can eat enough to get sick. Avoid green potatoes.
Dried beans contain a substance that is harmful. That can do more to you than just make you gassy. Some varieties are worse than others, I think red kidneys are the worst. When you cook dried beans you soak them, rinse them, then cook them well. That makes them safe, but they really need to be well-cooked. Don’t feed your chickens dried uncooked beans.
You’ll see apple seeds on the do not feed list. Most fruit seeds, including apple seeds, contain cyanide, a poison. But it comes back to dosage. There is not enough cyanide in an apple seed to harm something as a chicken. They’d have to eat a bunch to get enough to cause a problem. Go ahead and toss an apple core into them, they’ll love it. But if you make apple cider or apple butter and have a concentration of apple seeds, don’t feed them a huge bunch of the seeds. Mine forage in my orchard and eat a lot of fallen fruit. It doesn’t hurt them.
There are other things but to get back to the garden. There are several plants in your garden that could potentially harm them. If you let your chickens free range in woods, brush, or fields there are a lot of plants there that could harm them. But nature put enough safeguards in place, like a bitter taste, that hardly any chicken is going to eat enough of something poisonous to harm itself. It can happen but it is really rare.
Many people turn their chickens loose in the garden after the harvest is over and let them clean it up and get ready for next season. Chickens can do a lot of damage to an active garden, either eating or just from scratching. I think a good fence is a good investment. But to worry about a chicken accidentally getting in one day and eating enough of something that can harm it, well, I would not worry about that. It should find plenty of stuff that tastes good so it doesn’t eat dangerous things.
It’s a good question but the fence is there to protect your garden from the chickens, not the other way around.