figviz
Create diagram
For Teachers

Syntactic Tree Generator Syntax Tree Diagrams

Type any sentence and Figviz will build a labeled syntactic tree showing phrase structure, constituency, and grammatical hierarchy. Ideal for linguistics courses, syntax assignments, and language research.

Phrase Structure TreesX-bar Theory NotationConstituency AnalysisMultilingual Support

Syntactic Tree Examples

Explore examples of different syntactic structures, or generate your own using the tool above

Simple Sentence Parse Tree

A foundational constituency parse tree for a short English sentence, mapping out noun phrase and verb phrase organization down to each individual word.

simple-sentenceconstituencyphrase-structure

Complex Sentence with Clauses

Full parse tree of a complex sentence that contains an embedded subordinate clause introduced by a complementizer phrase.

complex-sentencesubordinate-clauseCP

Question Formation Tree

Parse tree capturing wh-movement and subject-auxiliary inversion in an English interrogative, with movement arrows and trace positions marked.

questionwh-movementinversion

Passive Voice Tree

Parse tree for a passive-voice construction that shows NP-movement from the internal complement slot up to the surface subject position.

passive-voiceNP-movementtransformational

Relative Clause Tree

Parse tree of an NP that contains a relative clause modifier, displaying the relative pronoun in Spec-CP and a gap inside the embedded IP.

relative-clauseembedded-CPNP-modification

Noun Phrase X-bar Tree

X-bar analysis of a complex noun phrase, illustrating all three projection levels and the positioning of the specifier, adjective adjunct, and PP complement.

x-barnoun-phrasespecifier-complement

Prompt templates you can copy

Start with one of these examples, then adapt the subject, labels, data, or layout for your own use.

Simple Sentence Parse Tree

A foundational constituency parse tree for a short English sentence, mapping out noun phrase and verb phrase organization down to each individual word.

Create a syntactic tree diagram (constituency parse tree) for the sentence "The cat sat on the mat". Show S at the root branching into NP (Det "The" + N "cat") and VP (V "sat" + PP (P "on" + NP (Det "the" + N "mat"))). Use labeled bracket notation with clear node labels (S, NP, VP, PP, Det, N, V, P), straight connecting lines, academic linguistics style, white background.

Complex Sentence with Clauses

Full parse tree of a complex sentence that contains an embedded subordinate clause introduced by a complementizer phrase.

Create a syntactic tree diagram for the complex sentence "I believe that she will pass the exam". Show S branching into NP ("I") and VP, with VP containing V ("believe") and CP. CP contains C ("that") and IP with NP ("she"), I ("will"), and VP (V "pass" + NP (Det "the" + N "exam")). Labeled node structure, academic linguistics style, clean lines, white background.

Question Formation Tree

Parse tree capturing wh-movement and subject-auxiliary inversion in an English interrogative, with movement arrows and trace positions marked.

Create a syntactic tree diagram for the question "What did the student read?" showing wh-movement. Show CP with Spec-CP containing "What_i", C containing "did" (subject-auxiliary inversion), and IP with NP ("the student") and VP (V "read" + trace t_i). Include movement arrow from trace to wh-phrase position, labeled nodes, academic syntax style, white background.

Passive Voice Tree

Parse tree for a passive-voice construction that shows NP-movement from the internal complement slot up to the surface subject position.

Create a syntactic tree diagram for the passive sentence "The book was read by the student". Show IP with NP ("The book_i") in Spec-IP, I ("was"), and VP containing V ("read") with trace t_i in complement position and PP ("by the student") as adjunct. Include movement arrow from trace to subject position, labeled phrase nodes, academic generative syntax style, white background.

What is a Syntactic Tree?

A syntactic tree, known also as a parse tree or phrase structure tree, is a visual diagram that captures the layered grammatical organization of a sentence. Where traditional flat sentence diagrams arrange words along a single baseline, syntactic trees reveal how words cluster into phrases and how those phrases nest inside progressively larger units all the way up to the sentence root. Every internal node carries a syntactic category label such as S (sentence), NP (noun phrase), VP (verb phrase), or PP (prepositional phrase), and the leaves at the bottom represent the actual words of the sentence. Syntactic trees are an indispensable resource in theoretical linguistics, computational linguistics, and language instruction at every level.

Phrase Structure Rules

S -> NP VP: a sentence is made up of a noun phrase followed by a verb phrase
NP -> (Det) (AdjP) N (PP): a noun phrase may include an optional determiner, an optional adjective phrase, a head noun, and an optional prepositional phrase
VP -> V (NP) (PP) (AdvP): a verb phrase consists of a verb together with optional complements such as noun phrases, prepositional phrases, or adverb phrases
PP -> P NP: a prepositional phrase is formed by a preposition followed by a noun phrase
CP -> (C) IP: a complementizer phrase optionally includes a complementizer followed by an inflectional phrase, and is used for subordinate and embedded clauses
These expansion rules are referred to as phrase structure rules or context-free grammar rules; they specify the well-formed structural configurations a language permits by defining how each phrasal category breaks down into its parts

How to Draw a Syntactic Tree

Start by placing an S node at the top to represent the whole sentence. Split the sentence into its two main parts: the subject NP and the predicate VP. From there, keep subdividing each phrase according to phrase structure rules, placing determiners, adjectives, and nouns within NPs, and distributing verbs, objects, and prepositional phrases under VPs. Draw branching lines from each parent node down to its immediate daughters. Words from the sentence anchor the bottom-most terminal nodes. Label every non-terminal node with its syntactic category, and aim for binary branching wherever modern theory requires it. Figviz handles this whole procedure automatically, generating correctly labeled trees the moment you supply a sentence.

X-bar Theory Basics

X-bar theory is a framework within generative grammar that assigns every phrase the same three-tier internal architecture: a lexical head (X), an intermediate projection (X-bar or X'), and a maximal projection (XP). The head carries the core word, the X-bar level merges the head with its complement, and the XP level introduces a specifier. In a noun phrase, for instance, the head N merges with a PP complement to build N-bar, and a determiner specifier then attaches to N-bar to complete the NP. Because this template applies uniformly across NP, VP, AP, PP, IP, and CP, X-bar theory provides the structural consistency that underlies advanced syntactic analysis in most university linguistics programs.

Uses of Syntactic Trees in Linguistics

Theoretical syntax: formulating and testing hypotheses about phrase structure, syntactic movement, and binding by working directly with tree representations
Language teaching: giving linguistics students a concrete way to see constituency, headedness, and hierarchical organization in syntax and morphology courses
Computational linguistics and NLP: parsing algorithms such as CKY and Earley use syntactic trees to assign grammatical structure to sentences inside software systems
Typological research: placing the tree structures of different languages side by side to examine cross-linguistic word-order variation (SVO, SOV, VSO, and beyond)
Psycholinguistics: building models of how human listeners construct syntactic structure step by step while processing spoken or written sentences in real time
Second language acquisition: comparing L1 and L2 tree structures for matched sentence types in order to identify and explain syntactic transfer patterns

Frequently asked questions

A syntactic tree generator is a tool that takes a sentence as input and produces a visual tree diagram showing its grammatical hierarchy. Figviz uses AI to build phrase structure trees with labeled nodes for syntactic categories including S, NP, VP, PP, CP, and IP. You type a sentence, pick your preferred notation, and receive a publication-ready syntax tree diagram within seconds.

Make your own syntactic tree with Figviz

Create a free account and get starter credits to generate your own. No credit card required.

Sign up free →