In a hierarchical edge‐fog‐cloud architecture, edge devices possess limited resources and energy. To contain with, it can offload some tasks generated by the Internet of Things (IoT) to the fog and cloud. Several factors influence this task‐offloading decision, including hardware features, network conditions, and application characteristics. Most of the research studies, in task offloading systems, have confined to changing parameter values, whereas very few have considered fuzzy‐based dynamic approaches for resource allocation. This work proposes a fuzzy‐based task offloading technique (FBOT) for scheduling the tasks (both compute and data‐intensive) to the appropriate nodes of the fog‐cloud system. The proposed method incorporates a vague logic‐based fuzzy task scheduler for scheduling various tasks at the fog layer. This helps to reduce the waiting time for the compute‐intensive tasks and minimizes the starvation problem of data‐intensive tasks. In addition, the proposed technique decreases the task completion time and selects the best computing nodes for each tasks. To validate the performance of the proposed technique, extensive simulation studies have been carried out on various parameters. Compared with the baseline algorithms, the results show that the proposed method offers an average improvement of 30% in terms of the total time of the task.