diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php
new file mode 100644
index 0000000..9560ed3
--- /dev/null
+++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php
@@ -0,0 +1,92 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\taxonomy\Test\TaxonomyTermReferenceItemTest.
+ */
+
+namespace Drupal\taxonomy\Tests;
+
+use Drupal\simpletest\WebTestBase;
+use Drupal\taxonomy\Type\TaxonomyTermReferenceItem;
+use Drupal\Core\Entity\Field\FieldItemInterface;
+use Drupal\Core\Entity\Field\FieldInterface;
+
+/**
+ * Tests the new entity API for the taxonomy term reference field type.
+ */
+class TaxonomyTermReferenceItemTest extends WebTestBase {
+  public static $modules = array('field', 'field_sql_storage', 'taxonomy', 'entity_test', 'options');
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Taxonomy reference API',
+      'description' => 'Tests the new entity API for the taxonomy term reference field type.',
+      'group' => 'Taxonomy',
+    );
+  }
+
+  public function setUp() {
+    parent::setUp();
+    $vocabulary = entity_create('taxonomy_vocabulary', array(
+      'name' => $this->randomName(),
+      'machine_name' => drupal_strtolower($this->randomName()),
+      'langcode' => LANGUAGE_NOT_SPECIFIED,
+    ));
+    taxonomy_vocabulary_save($vocabulary);
+    $field = array(
+      'field_name' => 'field_test_taxonomy',
+      'type' => 'taxonomy_term_reference',
+      'cardinality' => FIELD_CARDINALITY_UNLIMITED,
+      'settings' => array(
+        'allowed_values' => array(
+          array(
+            'vocabulary' => $vocabulary->machine_name,
+            'parent' => 0,
+          ),
+        ),
+      ),
+    );
+    field_create_field($field);
+    $instance = array(
+      'entity_type' => 'entity_test',
+      'field_name' => 'field_test_taxonomy',
+      'bundle' => 'entity_test',
+      'widget' => array(
+        'type' => 'options_select',
+      ),
+    );
+    field_create_instance($instance);
+    $this->term = entity_create('taxonomy_term', array(
+      'name' => $this->randomName(),
+      'vid' => $vocabulary->vid,
+      'langcode' => LANGUAGE_NOT_SPECIFIED,
+    ));
+    taxonomy_term_save($this->term);
+  }
+
+  public function testTaxonomyTermReferenceItem() {
+    $tid = $this->term->id();
+    // Just being able to create the entity like this verifies a lot of code.
+    $entity = entity_create('entity_test', array());
+    $entity->field_test_taxonomy->tid = $this->term->tid;
+    $entity->name->value = $this->randomName();
+    $entity->save();
+    $id = $entity->id();
+    $entities = entity_load_multiple('entity_test', array($id), TRUE);
+    $entity = reset($entities);
+    $this->assertTrue($entity->field_test_taxonomy instanceof FieldInterface, 'Field implements interface.');
+    $this->assertTrue($entity->field_test_taxonomy[0] instanceof FieldItemInterface, 'Field item implements interface.');
+    $this->assertEqual($entity->field_test_taxonomy->entity->name, $this->term->name);
+    $this->assertEqual($entity->field_test_taxonomy->entity->id(), $tid);
+    $this->assertEqual($entity->field_test_taxonomy->entity->uuid(), $this->term->uuid());
+    // Change the name of the term via the reference.
+    $new_name = $this->randomName();
+    $entity->field_test_taxonomy->entity->name = $new_name;
+    $entity->field_test_taxonomy->entity->save();
+    // Verify it is the correct name.
+    $terms = entity_load_multiple('taxonomy_term', array($tid), TRUE);
+    $term = reset($terms);
+    $this->assertEqual($term->name, $new_name);
+  }
+}
diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Type/TaxonomyTermReferenceItem.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Type/TaxonomyTermReferenceItem.php
new file mode 100644
index 0000000..108d06c
--- /dev/null
+++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Type/TaxonomyTermReferenceItem.php
@@ -0,0 +1,76 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\taxonomy\Type\taxonomyItem.
+ */
+
+namespace Drupal\taxonomy\Type;
+
+use Drupal\Core\Entity\Field\FieldItemBase;
+use InvalidArgumentException;
+
+/**
+ * Defines the 'taxonomy_term_reference' entity field item.
+ */
+class TaxonomyTermReferenceItem extends FieldItemBase  {
+
+  /**
+   * Field definitions of the contained properties.
+   *
+   * @see self::getPropertyDefinitions()
+   *
+   * @var array
+   */
+  static $propertyDefinitions;
+
+  /**
+   * Implements ComplexDataInterface::getPropertyDefinitions().
+   */
+  public function getPropertyDefinitions() {
+
+    if (!isset(self::$propertyDefinitions)) {
+      self::$propertyDefinitions['tid'] = array(
+        'type' => 'integer',
+        'label' => t('Referenced taxonomy term id.'),
+      );
+      self::$propertyDefinitions['entity'] = array(
+        'type' => 'entity',
+        'constraints' => array(
+          'entity type' => 'taxonomy_term',
+        ),
+        'label' => t('Term'),
+        'description' => t('The referenced taxonom term'),
+        // The entity object is computed out of the tid.
+        'computed' => TRUE,
+        'read-only' => FALSE,
+        'settings' => array('id source' => 'tid'),
+      );
+    }
+    return self::$propertyDefinitions;
+  }
+
+  /**
+   * Overrides FieldItemBase::setValue().
+   */
+  public function setValue($values) {
+    // Treat the values as property value of the entity field, if no array
+    // is given.
+    if (!is_array($values)) {
+      $values = array('entity' => $values);
+    }
+
+    // Entity is computed out of the ID, so we only need to update the ID. Only
+    // set the entity field if no ID is given.
+    if (isset($values['tid'])) {
+      $this->properties['tid']->setValue($values['tid']);
+    }
+    else {
+      $this->properties['entity']->setValue(isset($values['entity']) ? $values['entity'] : NULL);
+    }
+    unset($values['entity'], $values['tid']);
+    if ($values) {
+      throw new InvalidArgumentException('Property ' . key($values) . ' is unknown.');
+    }
+  }
+}
diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module
index 8da637f..bb2961a 100644
--- a/core/modules/taxonomy/taxonomy.module
+++ b/core/modules/taxonomy/taxonomy.module
@@ -1015,6 +1015,7 @@ function taxonomy_field_info() {
       'description' => t('This field stores a reference to a taxonomy term.'),
       'default_widget' => 'options_select',
       'default_formatter' => 'taxonomy_term_reference_link',
+      'field item class' => 'Drupal\taxonomy\Type\TaxonomyTermReferenceItem',
       'settings' => array(
         'allowed_values' => array(
           array(
