Given the vast variety of food types, it's not possible to say.
Fruits contain the majority of their calories as sugars- yet no one
would suggest you restrict your fruit consumption because of this!
Instead of focusing on percentage of sugar, consider instead the
positive nutritional aspects of the food, such as fiber content,
fruit, vegetable, whole grain and lean protein content. By avoiding
products with added sugars, you'll be consuming a product that's
more nutritionally dense- 100 calories of unsugared strawberries
provides more fruit than 100 calories of sugared strawberries. For
carbohydrate grain based products, such as cereals, granola,
breads, granola bars and such, it can be very difficult to estimate
the proportion of calories coming from added sugars. An easy way to
make a reasonable estimate of a cereal or grains' "wholeness" (you
are eating whole grains, I hope!) is to divide the total grams of
carbohydrates in a serving by the number of grams of fiber in a
serving. The lower the better. For instance, if a product contains
40 grams of carbs and 5 grams of fiber- the carb/fiber ratio is
40/5=8- pretty good. On the other hand, some foods may have 23
carbs and 1 gram of fiber- 23/1= 23- not very good at all. High
ratios tend to be indicative of added, enriched flours, extra
sugars, or no whole grains. A "good" cereal product will have a
ratio of less than 10. Unsugared whole wheat has a ratio of about
4.